ORM: Crash on update with fields.function() and store=True)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
After adding a functional field with store=True, and launching server in update mode (-u MODULE), it crash with the following traceback:
[Sun Jan 18 2009 21:44:58] WARNING:init:<class 'osv.fields.
Traceback (most recent call last):
File "./openerp-
pooler.
File "/home/
addons.
File "/home/
load_
File "/home/
init_
File "/home/
result = obj._auto_init(cr, {'module': module_name})
File "/home/
cr.
TypeError: 'NoneType' object is unsubscriptable
Here is the code i used to reproduce the problem:
<code>
class res_partner_
def _get_oops(self, cr, uid, ids, field_name, arg, context):
_inherit = 'res.partner.
_columns = {
}
res_partner_
</code>
Versions:
openobject-server: 1602
Here is a patch!