From b70f1e4472a59c46ec50136e53bb2e5a3d3258e5 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Wed, 12 Mar 2014 17:39:41 +0100 Subject: [PATCH] [FIX] stock: the date planned of a procurement created by an orderpoint must be the scheduler runtime because the goods may come from something else than a purchase, thus there is no point at adding the seller delay there bzr revid: qdp-launchpad@openerp.com-20140312163941-76rs8c1uudmrvh15 --- addons/stock/procurement.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/stock/procurement.py b/addons/stock/procurement.py index 4e16dc93d2c..d9e018f1cb0 100644 --- a/addons/stock/procurement.py +++ b/addons/stock/procurement.py @@ -317,8 +317,7 @@ class procurement_order(osv.osv): def _get_orderpoint_date_planned(self, cr, uid, orderpoint, start_date, context=None): - date_planned = start_date + \ - relativedelta(days=orderpoint.product_id.seller_delay or 0.0) + date_planned = start_date return date_planned.strftime(DEFAULT_SERVER_DATE_FORMAT) def _prepare_orderpoint_procurement(self, cr, uid, orderpoint, product_qty, context=None):