[FIX] Hr_expense: 'NoneType' object does not support item assignment

lp bug: https://launchpad.net/bugs/691290 fixed

bzr revid: mra@mra-laptop-20101217054631-vkm93baylg7oggk1
This commit is contained in:
Mustufa Rangwala 2010-12-17 11:16:31 +05:30
parent 84026a2e2a
commit 5b01081a39
1 changed files with 2 additions and 0 deletions

View File

@ -240,6 +240,8 @@ class hr_expense_line(osv.osv):
_order = "sequence, date_value desc"
def onchange_product_id(self, cr, uid, ids, product_id, uom_id, employee_id, context=None):
if context is None:
context = {}
res = {}
if product_id:
product = self.pool.get('product.product').browse(cr, uid, product_id, context=context)