Orm.create() should not drop nonexisting fields in passed values
Bug #727727 reported by
Stefan Rijnhart (Opener)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Confirmed
|
Wishlist
|
OpenERP's Framework R&D |
Bug Description
Hi,
When I create an instance of an OpenERP object, any nonexisting fields-value pairs are dropped silently. This means a great opportunity to protect data integrity against logical errors and typos of developers is lost. A sanity check, if only a debug statement in the logs at this point would be very helpful.
Cheers,
Stefan.
Related branches
lp:~openerp-community/openobject-server/stefan-therp_lp727727-6.1
- Olivier Dony (Odoo): Approve
- Stefan Rijnhart (Opener) (community): Needs Resubmitting
-
Diff: 91 lines (+13/-4)4 files modifiedopenerp/addons/base/base_data.xml (+1/-2)
openerp/addons/base/module/module_view.xml (+0/-1)
openerp/addons/base/res/res_partner_view.xml (+0/-1)
openerp/osv/orm.py (+12/-0)
To post a comment you must log in.
Hello Stefan,
would you please provide me more information with proper example.
Thanks.