Error when saving res_company object -> 'NoneType' object has no attribute 'id'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi all. Using 5.2dev server version, I got the following error after doing some changes on a res_company object through GTK client:
[2010-06-16 15:51:27,532] ERROR:web-
Traceback (most recent call last):
File "/opt/openerp/
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/
return super(res_company, self).write(cr, *args, **argv)
File "/opt/openerp/
self.
File "/opt/openerp/
if not fun(self, cr, uid, ids):
File "/opt/openerp/
if rec.currency_id.id <> rec.property_
AttributeError: 'NoneType' object has no attribute 'id'
This was because I didn't have any value in 'property_
Thanks in advance.
Hello Alberto,
You have to update the code.
Thanks.