_constraints - only last constraint is evaluated - GRAVE
Bug #564926 reported by
Ferdinand
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Anup(SerpentCS) |
Bug Description
branch-server 2037
in this statement only the last constraint is evaluated - the first 2 are ignored - can be checked by rotating the constraints
_constraints = [
]
I attach the complete module (work in progress) for test purpose
Related branches
Changed in openobject-server: | |
status: | New → Confirmed |
assignee: | nobody → Anup (Open ERP) (ach-openerp) |
Changed in openobject-server: | |
status: | Confirmed → In Progress |
To post a comment you must log in.
Hello Dr. Ferdinand,
If the constraints belong to the same objects,all the validation errors are thrown without fail. Its always a good practice to use the same function for the same field.
If the constraints belong to different objects, only the current object (whose create/write) is under change,will throw related constraint!
Kindly recheck,
Thanks,