[trunk/6.1/6.0] issue with inherited field when put in child and parent is required
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Won't Fix
|
Low
|
OpenERP Publisher's Warranty Team | ||
6.0 |
Won't Fix
|
Undecided
|
Unassigned | ||
6.1 |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Modified code
for v in vals.keys():
if v in self._inherit_
if v not in self._columns:
Original code
for v in vals.keys():
if v in self._inherit_
del vals[v]
The cause of this problem can be demonstrated by product and product_
Now I am not saying this is the most elegant way to fix it, and one could argue it would be better done in the addons code, but both these modules existed long before the code change that introduced the error. The modified code block is how I resolved it, essentially writing the value to both models.
Related branches
- Naresh(OpenERP) (community): Approve
- Christophe CHAUVET (community): Approve
-
Diff: 13 lines (+2/-1)1 file modifiedbin/osv/orm.py (+2/-1)
- Naresh(OpenERP): Pending requested
-
Diff: 17 lines (+3/-2)1 file modifiedopenerp/osv/orm.py (+3/-2)
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-server: | |
assignee: | OpenERP's Framework R&D (openerp-dev-framework) → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
summary: |
- [trunk] issue with inherited field when put in child and parent is - required + [trunk/6.1/6.0] issue with inherited field when put in child and parent + is required |
Changed in openobject-server: | |
status: | Confirmed → Won't Fix |
sorry this is in the create method of orm.py, I imagine write has a similar issue.