From cab4b4604f4a3a2f81323645192bfe8e52cb1930 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 14 Feb 2012 13:07:41 +0100 Subject: [PATCH] [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 --- addons/account/account_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py index 41730a02b95..bcc8b695c7e 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -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):