Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] base: ensure existing ir.model.constraint xmlids are loaded
When we load a module and the SQL constraints exist both in the table and in `ir_model_constraint` we need to ensure the xmlid is loaded. Otherwise the record in `ir_model_constraint` is removed. Since 4c99683 we skip returning existing non-updated constraint records in `_reflect_constraint`. This leads to them being removed by the ORM. At the end of the load the ORM sees the record in `ir_model_data` but not in the xmlid pool, thus it removes it. closes odoo#162105 X-original-commit: b5670c7 Signed-off-by: Christophe Simonis (chs) <chs@odoo.com>
- Loading branch information