diff options
| author | jem-odoo <jem@openerp.com> | 2018-11-07 07:55:23 +0000 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2018-12-10 15:59:44 +0000 |
| commit | f098c787c0c94fb18992ae40b5aea0fcfb1315c7 (patch) | |
| tree | 392f7a537f1cb462495185568ab4a9cb4197d6e1 /addons/mail/data/mail_data.xml | |
| parent | dc4a9d3db79ea24fb0350fa547e3a5cb2159440e (diff) | |
[IMP] rating: don't call compute method directly
The correct way to trigger a recomputation of a field is not
to call directly the compute method. The ORM offers mecanism
to do it: we have to flag the field as "recompute to do" and
then call `recompute` method (availble on every models). This
one will call the recompute method of all fields marked as
"to recompute".
This will optimize the performance by doing recomputation in
batch.
Task-1903565
Diffstat (limited to 'addons/mail/data/mail_data.xml')
0 files changed, 0 insertions, 0 deletions
