[FIX] Account : Refund wizard wasnt calculating taxes for new invoices

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

bzr revid: jvo@tinyerp.com-20091102051251-rpt29iur2ccpb0ni
This commit is contained in:
VRA(OpenERP) 2009-11-02 10:42:51 +05:30 committed by Jay (Open ERP)
parent 549bc3b290
commit 858222d496
1 changed files with 3 additions and 1 deletions

View File

@ -110,7 +110,9 @@ class wiz_refund(wizard.interface):
# we compute due date
#!!!due date = date inv date on formdate
pool.get('account.invoice').write(cr, uid, [refund.id],{'date_due':date,'check_total':inv.check_total})
# to make the taxes calculated
pool.get('account.invoice').button_compute(cr, uid, refund_id)
created_inv.append(refund_id[0])
#if inv is paid we unreconcile
if mode in ('cancel','modify'):