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,