[IMP] account: if updating just one literal key in a dict, just call __setitem__ no need to call update with a literal dict...
bzr revid: xmo@openerp.com-20120214120741-srnfvkxf3rc2m7ev
This commit is contained in:
parent
2aa49acc71
commit
cab4b4604f
|
@ -349,7 +349,7 @@ class account_invoice(osv.osv):
|
|||
context = {}
|
||||
res = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'account', 'invoice_form')
|
||||
view_id = res and res[1] or False
|
||||
context.update({'view_id': view_id})
|
||||
context['view_id'] = view_id
|
||||
return context
|
||||
|
||||
def create(self, cr, uid, vals, context=None):
|
||||
|
|
Loading…
Reference in New Issue