[6.0RC1] 'NoneType' object does not support item assignment

Bug #691290 reported by Maxime Chambreuil (http://www.savoirfairelinux.com)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 3

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

Tags: 6.0 rc1

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

Hello Maxime,

Fixed the error in Addons3 branch

revision-id: mra@mra-laptop-20101217054631-vkm93baylg7oggk1
revno: 4722

Thank you,
Mustufa

Changed in openobject-addons:
milestone: none → 6.0-rc2
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.