From 6eb401223a0b0c64a3fecac64fd8aac44ff20c9d Mon Sep 17 00:00:00 2001 From: Arnaud Pineux Date: Wed, 5 Dec 2012 11:29:19 +0100 Subject: [PATCH] [FIX] invoice pay customer fixed bzr revid: api@openerp.com-20121205102919-8mcsv0eos38p85u0 --- addons/account_voucher/invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_voucher/invoice.py b/addons/account_voucher/invoice.py index 426027f984c..af8405c1ec9 100644 --- a/addons/account_voucher/invoice.py +++ b/addons/account_voucher/invoice.py @@ -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,