[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:
parent
db0b1af46e
commit
b70f1e4472
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue