*bugfixed the payment term selection and computation of maturity date
bzr revid: qdp@tinyerp.com-20081022101603-zo8nryhgp5qj7dxz
This commit is contained in:
parent
9c2aa93638
commit
bf83612f32
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue