summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorron@tinyerp.com <>2011-04-21 14:56:00 +0530
committerron@tinyerp.com <>2011-04-21 14:56:00 +0530
commitaa4f5fdc811db412df41ff0139b3d1437a37e2dc (patch)
tree35406faddc5dbc7bfc1137b9dda774f414036130 /addons
parent7549fe14d7a8cb45e59c1ec33970aedd6a3673ee (diff)
[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
Diffstat (limited to 'addons')
-rw-r--r--addons/sale/sale.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/sale/sale.py b/addons/sale/sale.py
index f80d610eb03..7c209aa7b6f 100644
--- a/addons/sale/sale.py
+++ b/addons/sale/sale.py
@@ -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':