The constraint is already enforced at the SQL level, there is no need to add a duplicate python constraint to verify the same thing. Task Id: 2328664 COM PR: https://github.com/odoo/odoo/pull/55525 ENT PR: https://github.com/odoo/enterprise/pull/12250