Anup(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-opw-5351-ach into
lp:openobject-addons/6.0.
Requested reviews:
Jay Vora (OpenERP) (jvo-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-5351-ach/+merge/58651
Hello,
The scheduled date of a procurement was not being calculated properly from
a sale order.
This fixes the issue in stable.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-5351-ach/+merge/58651
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw-5351-ach.
=== modified file 'sale/sale.py'
--- sale/sale.py 2011-01-19 08:38:17 +0000
+++ sale/sale.py 2011-04-21 11:01:18 +0000
@@ -662,7 +662,7 @@
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':
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-web
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-web
More help : https://help.launchpad.net/ListHelp