[FIX] invoice pay customer fixed

bzr revid: api@openerp.com-20121205102919-8mcsv0eos38p85u0
This commit is contained in:
Arnaud Pineux 2012-12-05 11:29:19 +01:00
parent 18afbc6313
commit 6eb401223a
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class invoice(osv.osv):
'target': 'new',
'domain': '[]',
'context': {
'default_partner_id': self._find_partner(inv),
'default_partner_id': self._find_partner(inv).id,
'default_amount': inv.type in ('out_refund', 'in_refund') and -inv.residual or inv.residual,
'default_number':inv.name,
'close_after_process': True,