diff options
| author | Raphael Collet <rco@odoo.com> | 2019-08-27 13:27:51 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2019-09-09 13:18:53 +0000 |
| commit | 263849c3365af3d62fa5b9ceaff65b2f7b84c092 (patch) | |
| tree | bfb98fc8abbd771675e5765936273f0b3d4836a3 /addons/web/static/src/js/views/form | |
| parent | cfb08e87b0fa8895ec4406c9b30d2ebdb790e346 (diff) | |
[FIX] models: optimize modified() in the context of record creation
This prevents a bunch of queries that are useless when creating a
record. Indeed, right after a record has been created, no other record
has a many2one reference to it. In other words, inversing a many2one
field from the record just created always gives an empty recordset.
Those useless inversions generate about a dozen queries when creating a
`res.partner`, for instance.
This saves queries, but not much time.
closes odoo/odoo#36566
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/form')
0 files changed, 0 insertions, 0 deletions
