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:28 +0000 |
| commit | 892e3df7010729da96278becbec29d7fe1f0985d (patch) | |
| tree | 3b62bc4667b3427aa0ccd7ad50311193843017ed /addons/base_automation | |
| parent | 0551e7ad54bea744fc546682a0070327807d5e36 (diff) | |
[IMP] core: compute field_computed lazily
This is a simple refactoring.
X-original-commit: 634775bff6d9eba9d4548cc801071a942895a719
Diffstat (limited to 'addons/base_automation')
| -rw-r--r-- | addons/base_automation/models/base_automation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/base_automation/models/base_automation.py b/addons/base_automation/models/base_automation.py index 3ac633948c0..5051ed9f60d 100644 --- a/addons/base_automation/models/base_automation.py +++ b/addons/base_automation/models/base_automation.py @@ -343,7 +343,7 @@ class BaseAutomation(models.Model): # def _compute_field_value(self, field): # determine fields that may trigger an action - stored_fields = [f for f in self._field_computed[field] if f.store] + stored_fields = [f for f in self.pool.field_computed[field] if f.store] if not any(stored_fields): return _compute_field_value.origin(self, field) # retrieve the action rules to possibly execute |
