diff options
| author | Moisés López <moylop260@vauxoo.com> | 2020-05-29 01:37:04 +0000 |
|---|---|---|
| committer | Moisés López <moylop260@vauxoo.com> | 2020-05-29 07:23:28 +0000 |
| commit | b6489f2763c3f062ab2e5a96b2c804b445f79809 (patch) | |
| tree | b3fcd55bfc4b5699fa6a5068a84c6963b13b47a9 /addons/web/static/src/xml | |
| parent | cfbbc229d88b74ec7080c47cf1b6555dfc3c23b4 (diff) | |
[IMP] base_automation: Return early if there are not base.automation to process
Installing base_automation module the methods: create, write, unlink and compute_field
are patched.
So, they will be used for all models.
It is important to save resources as possible.
The patched methods in base.automation read the original data
before to change so run all base.automation records.
But What about if there are not base.automation records?
So, we can save an extra read for all models
The same to pre-filter and post-filter
It adds a return early in order to skip this extra task when it will be useless.
closes odoo/odoo#52134
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml')
0 files changed, 0 insertions, 0 deletions
