[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:
parent
549bc3b290
commit
858222d496
|
@ -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'):
|
||||
|
|
Loading…
Reference in New Issue