diff options
| author | Raphael Collet <rco@odoo.com> | 2020-04-02 06:45:54 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2020-04-03 11:40:29 +0000 |
| commit | 9afce4805fc8bac45fdba817488aa867fddff69b (patch) | |
| tree | 665f109f3f9881b7e2e0d56caf1a7d9e5aaf9219 /addons/mail/models/ir_model_fields.py | |
| parent | 6eb7d5c6a07f678e1d1adca7137652e0626ea17e (diff) | |
[IMP] core: reflect models, fields and selections in batch
This saves 4.5% of the total installation time.
X-original-commit: 8519064dce975af542ccd30dc14c56b9bb36d07b
Diffstat (limited to 'addons/mail/models/ir_model_fields.py')
| -rw-r--r-- | addons/mail/models/ir_model_fields.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/models/ir_model_fields.py b/addons/mail/models/ir_model_fields.py index e8650ce2d6d..e2bed7af3ea 100644 --- a/addons/mail/models/ir_model_fields.py +++ b/addons/mail/models/ir_model_fields.py @@ -12,11 +12,11 @@ class IrModelField(models.Model): help="If set every modification done to this field is tracked in the chatter. Value is used to order tracking values.", ) - def _reflect_field_params(self, field): + def _reflect_field_params(self, field, model_id): """ Tracking value can be either a boolean enabling tracking mechanism on field, either an integer giving the sequence. Default sequence is set to 100. """ - vals = super(IrModelField, self)._reflect_field_params(field) + vals = super(IrModelField, self)._reflect_field_params(field, model_id) tracking = getattr(field, 'tracking', None) if tracking is True: tracking = 100 |
