[REF]
bzr revid: mra@mra-laptop-20101022054516-klol5g49os9ilazc
This commit is contained in:
parent
011b05bf12
commit
2d17946631
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue