[IMP] account: if updating just one literal key in a dict, just call __setitem__...
authorXavier Morel <xmo@openerp.com>
Tue, 14 Feb 2012 12:07:41 +0000 (13:07 +0100)
committerXavier Morel <xmo@openerp.com>
Tue, 14 Feb 2012 12:07:41 +0000 (13:07 +0100)
bzr revid: xmo@openerp.com-20120214120741-srnfvkxf3rc2m7ev

addons/account/account_invoice.py

index 41730a0..bcc8b69 100644 (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):