Commit 1348974c authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Titouan Soulard

erp5_production_planning: set date only

avoid to trigger interaction when edit for the first time
parent 70241a17
...@@ -13,7 +13,7 @@ else: ...@@ -13,7 +13,7 @@ else:
stop_date = addToDate(start_date, {'month':1}) stop_date = addToDate(start_date, {'month':1})
context.edit( context.edit(
start_date=start_date, start_date = start_date.Date(),
stop_date=stop_date, stop_date = stop_date.Date(),
title = context.Base_translateString('Production Planning at ${date}', mapping= {'date': start_date.Date()}), title = context.Base_translateString('Production Planning at ${date}', mapping= {'date': start_date.Date()}),
production_planning_period = context.portal_preferences.getPreferredProductionPlanningPeriod()) production_planning_period = context.portal_preferences.getPreferredProductionPlanningPeriod())
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment