Inconsistent behaviour in _inherits
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Wishlist
|
Thibaut DIRLIK (Logica) |
Bug Description
If one object _inherits from another (like product.product from product.template) and both objects have a column with the same name, the value of the father is shown in the view, however when saving the child object, the child's table is written.
Example:
Try to move 'weight' field from product.template to product.product. You can define a 'weight' column for product.product. When you open the product form, the displayed 'weight' will be the one retrieved from the product_template table, but if you change the value and save it, the value will be saved on the product_product table.
Expected behaviour: When the same column exists in both, parent and child, the child's value should be used.
Related branches
- Olivier Dony (Odoo): Approve ((patch review, not tested))
- OpenERP Community (OBSOLETE): Pending (review test) requested
-
Diff: 12 lines (+1/-1)1 file modifiedopenerp/osv/orm.py (+1/-1)
Hello,
This will not be fixed for 5.0, I suggest to create a blueprint that will be assigned to a futur release.
I close the bug.
Thanks.