summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMustufa Rangwala <mra@mra-laptop>2010-10-27 18:58:32 +0530
committerMustufa Rangwala <mra@mra-laptop>2010-10-27 18:58:32 +0530
commit30ff99be31f4e999a36c87906d3dbc06a2228131 (patch)
treed91b4cdbd10da32e222be66ef4bee6e4d34a539c
parenta1d52233bb13a35652305f5691d752320ba4aa5a (diff)
[REF]
bzr revid: mra@mra-laptop-20101027132832-flatdp5rbez35z8t
-rw-r--r--addons/account/invoice.py2
1 files changed, 1 insertions, 1 deletions
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