[REF]
authorMustufa Rangwala <mra@mra-laptop>
Fri, 22 Oct 2010 05:45:16 +0000 (11:15 +0530)
committerMustufa Rangwala <mra@mra-laptop>
Fri, 22 Oct 2010 05:45:16 +0000 (11:15 +0530)
bzr revid: mra@mra-laptop-20101022054516-klol5g49os9ilazc

addons/account_voucher/invoice.py

index 5560f57..0230cac 100644 (file)
@@ -24,8 +24,8 @@ from tools.translate import _
 
 class invoice(osv.osv):
     _inherit = 'account.invoice'
-    
-    def invoice_pay_customer(self, cr, uid, ids, context={}):
+
+    def invoice_pay_customer(self, cr, uid, ids, context=None):
         if not ids: return []
         inv = self.browse(cr, uid, ids[0], context=context)
         return {
@@ -46,7 +46,7 @@ class invoice(osv.osv):
                 'invoice_type':inv.type,
                 'invoice_id':inv.id,
                 'default_type': inv.type in ('out_invoice','out_refund') and 'receipt' or 'payment'
-            }
+                }
         }
 
 invoice()