summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/chart.xml
diff options
context:
space:
mode:
authorAdrian Torres <adt@odoo.com>2020-08-07 14:51:57 +0000
committerAdrian Torres <adt@odoo.com>2020-08-11 08:34:37 +0000
commit422ca9563ef20f10898377cd6dc316b131d5c268 (patch)
tree2991bd47b8057a71d8499836f99e44ac5711cb44 /addons/web/static/src/xml/chart.xml
parentd6e20b474b7c6f546e6201bfb551575c9e2abdc4 (diff)
[FIX] core: apply post-constraints only if necessary
This is a followup of commit bc2bb5e03c2b32d4ee1b0597ea5889c17d2b0e0e When a module is updated, a constraint application may (temporarily) fail because the existing data does not respect the constraint, this is OK and can be fixed through hooks/migration scripts and was handled by the aforementioned commit. However when updating multiple modules, it is possible that an inheriting module will try to re-apply the failed constraint and succeed, if that is the case, when processing the `post_constraints` an already-existing constraint will be applied and raise an error. To fix this, a check is made before trying to apply the constraint, to verify that it is not already in _constraint_queue, if it is not, then we may attempt to apply it, if it is in the queue, then we may safely ignore it as it will be applied further down the registry cycle. closes odoo/odoo#55725 X-original-commit: 5225b9ce5178302af05b63029fb184e27b781815 Signed-off-by: Adrian Torres (adt) <adt@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml/chart.xml')
0 files changed, 0 insertions, 0 deletions