Bugfix in date maturity computation

bzr revid: fp@tinyerp.com-d2a44d87200bb141f83e65d49542cf670980b957
This commit is contained in:
Fabien Pinckaers 2008-02-05 21:33:58 +00:00
parent 8591f213d3
commit 0c9e2da1a5
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ class account_invoice(osv.osv):
totlines = False
if inv.payment_term:
totlines = self.pool.get('account.payment.term').compute(cr,
uid, inv.payment_term.id, total)
uid, inv.payment_term.id, total, inv.date_invoice or False)
if totlines:
res_amount_currency = total_currency
i = 0