*bugfixed the payment term selection and computation of maturity date

bzr revid: qdp@tinyerp.com-20081022101603-zo8nryhgp5qj7dxz
This commit is contained in:
qdp 2008-10-22 12:16:03 +02:00
parent 9c2aa93638
commit bf83612f32
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ class account_invoice(osv.osv):
pt_obj= self.pool.get('account.payment.term')
if not date_invoice :
date_invoice = self._defaults["date_invoice"](cr,uid,{})
date_invoice = time.strftime('%Y-%m-%d')
pterm_list= pt_obj.compute(cr, uid, payment_term_id, value=1, date_ref=date_invoice)