c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #08479
[Bug 691290] [NEW] [6.0RC1] 'NoneType' object does not support item assignment
Public bug reported:
Using a fresh install trunk of server, WEB client and addons, I have
installed hr_expense with demo data.
When selecting the product in the expense line form, I have this message
in the server console:
Traceback (most recent call last):
File "/home/max/openerp/server/trunk/bin/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/max/openerp/server/trunk/bin/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/max/openerp/server/trunk/bin/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/max/openerp/addons/trunk/hr_expense/hr_expense.py", line 248, in onchange_product_id
context['currency_id'] = self.pool.get('hr.employee').browse(cr, uid, employee_id, context=context).user_id.company_id.currency_id.id
TypeError: 'NoneType' object does not support item assignment
** Affects: openobject-addons
Importance: Undecided
Status: New
** Tags: 6.0 rc1
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/691290
Title:
[6.0RC1] 'NoneType' object does not support item assignment
Status in OpenObject Addons Modules:
New
Bug description:
Using a fresh install trunk of server, WEB client and addons, I have installed hr_expense with demo data.
When selecting the product in the expense line form, I have this message in the server console:
Traceback (most recent call last):
File "/home/max/openerp/server/trunk/bin/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/max/openerp/server/trunk/bin/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/max/openerp/server/trunk/bin/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/max/openerp/addons/trunk/hr_expense/hr_expense.py", line 248, in onchange_product_id
context['currency_id'] = self.pool.get('hr.employee').browse(cr, uid, employee_id, context=context).user_id.company_id.currency_id.id
TypeError: 'NoneType' object does not support item assignment
Follow ups
References