From 30ff99be31f4e999a36c87906d3dbc06a2228131 Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Wed, 27 Oct 2010 18:58:32 +0530 Subject: [PATCH] [REF] bzr revid: mra@mra-laptop-20101027132832-flatdp5rbez35z8t --- addons/account/invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index 44ebafb9bbd..46a17925e66 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -358,7 +358,7 @@ class account_invoice(osv.osv): if context is None: context = {} mob_obj = self.pool.get('ir.model.data') - res = mob_obj.get_object_reference(cr, uid, 'account', 'invoice_form') or False + res = mob_obj.get_object_reference(cr, uid, 'account', 'invoice_form') view_id = res and res[1] or False context.update({'view_id': view_id}) return context