_constraints problem with inheritance (trunk)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi!
Trunk version.
I start with an example. In the original module stock.move has 2 constraints for the field 'prodlot_id'. When using _inherit with stock.move. in theory additional constraints could be defined. But it's not possible to add one more constraint with the same field, 'prodlot_id' because the code in osv.createInsta
Look at the code in osv.createInsta
Hey,
I'm not alone! I confirm this bug. That's why I had to comment out the extra constraints I put in the extra-addons/ mrp_prodlot_ autosplit module! I think I remember that if I activate my new constraint, then the original constraints won't be checked. A major issue for module implementers, hope you find a fix.
Raphaël Valyi.