c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #12846
[Bug 703902] [NEW] [Trunk] hr_expense not working when Employee is not assigned user_id
Public bug reported:
Hello,
I got the following error:-
File "/home/mtr/workspace/trunk1/openobject-server/bin/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/mtr/workspace/trunk1/openobject-server/bin/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/mtr/workspace/trunk1/openobject-server/bin/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/mtr/workspace/trunk1/my_branch2/trunk-dev-addons3-mtr1/hr_expense/hr_expense.py", line 254, in onchange_product_id
ctx['currency_id'] = self.pool.get('hr.employee').browse(cr, uid, employee_id, context=context).user_id.company_id.currency_id.id
AttributeError: 'NoneType' object has no attribute 'currency_id'
Thanks
mtr
** Affects: openobject-addons
Importance: Undecided
Status: New
--
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/703902
Title:
[Trunk] hr_expense not working when Employee is not assigned user_id
Status in OpenObject Addons Modules:
New
Bug description:
Hello,
I got the following error:-
File "/home/mtr/workspace/trunk1/openobject-server/bin/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/mtr/workspace/trunk1/openobject-server/bin/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/mtr/workspace/trunk1/openobject-server/bin/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/mtr/workspace/trunk1/my_branch2/trunk-dev-addons3-mtr1/hr_expense/hr_expense.py", line 254, in onchange_product_id
ctx['currency_id'] = self.pool.get('hr.employee').browse(cr, uid, employee_id, context=context).user_id.company_id.currency_id.id
AttributeError: 'NoneType' object has no attribute 'currency_id'
Thanks
mtr
Follow ups
References