From 58a4fff0dd2af0561fe7c731e2b8d0ed631e995c Mon Sep 17 00:00:00 2001 From: "Jay (Open ERP)" Date: Fri, 9 Oct 2009 14:29:36 +0530 Subject: [PATCH] [FIX] Account : Refund wuzard malfunctioned with modify invoice option lp bug: https://launchpad.net/bugs/446681 fixed bzr revid: jvo@tinyerp.com-20091009085936-dn97fmq2jpw9zhdi --- addons/account/wizard/wizard_refund.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/wizard/wizard_refund.py b/addons/account/wizard/wizard_refund.py index 39d92b58a35..2f93b0e3459 100644 --- a/addons/account/wizard/wizard_refund.py +++ b/addons/account/wizard/wizard_refund.py @@ -152,10 +152,10 @@ class wiz_refund(wizard.interface): invoice = invoice[0] del invoice['id'] invoice_lines = pool.get('account.invoice.line').read(cr, uid, invoice['invoice_line']) - invoice_lines = pool.get('account.invoice')._refund_cleanup_lines(invoice_lines) + invoice_lines = pool.get('account.invoice')._refund_cleanup_lines(cr, uid, invoice_lines) tax_lines = pool.get('account.invoice.tax').read( cr, uid, invoice['tax_line']) - tax_lines = pool.get('account.invoice')._refund_cleanup_lines(tax_lines) + tax_lines = pool.get('account.invoice')._refund_cleanup_lines(cr, uid, tax_lines) invoice.update({ 'type': inv.type,