[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:
Xavier Morel 2012-02-14 13:07:41 +01:00
parent 2aa49acc71
commit cab4b4604f
1 changed files with 1 additions and 1 deletions

View File

@ -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):