[FIX]sale:Fixed :Purchase order from procurement : scheduled date wrong comutation

lp bug: https://launchpad.net/bugs/766916 fixed

bzr revid: ron@tinyerp.com-20110421092600-tkymt3f0n7mohat3
This commit is contained in:
ron@tinyerp.com 2011-04-21 14:56:00 +05:30
parent 7549fe14d7
commit aa4f5fdc81
1 changed files with 1 additions and 1 deletions

View File

@ -666,7 +666,7 @@ class sale_order(osv.osv):
picking_id = False
for line in order.order_line:
proc_id = False
date_planned = datetime.now() + relativedelta(days=line.delay or 0.0)
date_planned = datetime.strptime(order.date_order, '%Y-%m-%d') + relativedelta(days=line.delay or 0.0)
date_planned = (date_planned - timedelta(days=company.security_lead)).strftime('%Y-%m-%d %H:%M:%S')
if line.state == 'done':