Skip to content
Snippets Groups Projects
Commit 80b55624 authored by Simon Lejeune's avatar Simon Lejeune
Browse files

[FIX] uom: _check_category_reference_uniqueness


Edit the liters uom (default in its category) and change its category to
unit. You now have two references uom in the unit category. Try to set a
third one and now it fails.

This was because the constraint is implemented with an sql query but
since the new ORM the update in database are delayed. We force a
database update with flush so that the query gant get all the
informations it needs.

closes odoo/odoo#41621

X-original-commit: 68ced797
Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
parent 1492e1a6
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment