[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
This commit is contained in:
Quentin (OpenERP) 2014-03-12 17:39:41 +01:00
parent db0b1af46e
commit b70f1e4472
1 changed files with 1 additions and 2 deletions

View File

@ -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):