[FIX] Account : Refund wuzard malfunctioned with modify invoice option

lp bug: https://launchpad.net/bugs/446681 fixed

bzr revid: jvo@tinyerp.com-20091009085936-dn97fmq2jpw9zhdi
This commit is contained in:
Jay (Open ERP) 2009-10-09 14:29:36 +05:30
parent 811dea54b4
commit 58a4fff0dd
1 changed files with 2 additions and 2 deletions

View File

@ -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,