[FIX] Sale : Delivery Date delay computation made corrected when days are passed with fractions
lp bug: https://launchpad.net/bugs/419720 fixed bzr revid: jvo@tinyerp.com-20090922064256-b9nk9ruk8xctv3ho
This commit is contained in:
parent
48a8d1f0a1
commit
f4dd75aeae
|
@ -554,8 +554,8 @@ class sale_order(osv.osv):
|
|||
picking_id = False
|
||||
for line in order.order_line:
|
||||
proc_id = False
|
||||
date_planned = DateTime.now() + DateTime.RelativeDateTime(days=line.delay or 0.0)
|
||||
date_planned = (date_planned - DateTime.RelativeDateTime(days=company.security_lead)).strftime('%Y-%m-%d %H:%M:%S')
|
||||
date_planned = DateTime.now() + DateTime.DateTimeDeltaFromDays(line.delay or 0.0)
|
||||
date_planned = (date_planned - DateTime.DateTimeDeltaFromDays(company.security_lead)).strftime('%Y-%m-%d %H:%M:%S')
|
||||
if line.state == 'done':
|
||||
continue
|
||||
if line.product_id and line.product_id.product_tmpl_id.type in ('product', 'consu'):
|
||||
|
|
Loading…
Reference in New Issue