fields.related override: store function persists
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP's Framework R&D |
Bug Description
Hi,
when a fields.related is overridden by a regular field, the store function is not removed. Values assigned to the field by the users of the system get overwritten immediately by the store function of the original field definition.
Here is an example from the HR module:
'parent_id': fields.
We want to override this definition with "fields.
The problem is in orm.__init__() where the list of a model's store functions is populated but never purged.
Reproducable with openerp-server/6.0 rev. 3435.
Cheers,
Stefan.
Related branches
- Naresh(OpenERP) (community): Abstain
- Vo Minh Thu: Pending requested
-
Diff: 17 lines (+4/-3)1 file modifiedopenerp/osv/orm.py (+4/-3)
- Vo Minh Thu: Pending requested
-
Diff: 41 lines (+8/-11)1 file modifiedopenerp/osv/orm.py (+8/-11)
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Medium |
status: | New → Confirmed |
summary: |
- [6.0] fields.related override: store function persists + fields.related override: store function persists |
Changed in openobject-server: | |
status: | Confirmed → In Progress |
Hello, /code.launchpad .net/~openerp- dev/openobject- server/ trunk-bug- 789576- nco/+merge/ 65303
Stefan Rijnhart (Therp), thanks for the merge proposal in v6.0
It has been fixed in https:/
It will be available in trunk also.
Thank you.