rename 'date_to_procure' to 'order_release_date'

This commit is contained in:
Jordi Ballester Alomar
2018-07-05 11:36:23 +02:00
committed by JasminSForgeFlow
parent 8daabc2649
commit be9a7a7e22
3 changed files with 15 additions and 14 deletions

View File

@@ -224,7 +224,8 @@ class MultiLevelMrp(models.TransientModel):
if calendar and mrp_product_id.mrp_lead_time:
date_str = fields.Date.to_string(mrp_date)
dt = fields.Datetime.from_string(date_str)
res = calendar.plan_days(-1 * mrp_product_id.mrp_lead_time -1, dt)
res = calendar.plan_days(
-1 * mrp_product_id.mrp_lead_time - 1, dt)
mrp_action_date = res.date()
else:
mrp_action_date = mrp_date - timedelta(