Commit 538108a3 authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Cédric Le Ninivin

erp5_production_planning: set date only

avoid to trigger interaction when edit for the first time
parent 83b67093
......@@ -13,7 +13,7 @@ else:
stop_date = addToDate(start_date, {'month':1})
context.edit(
start_date=start_date,
stop_date=stop_date,
start_date = start_date.Date(),
stop_date = stop_date.Date(),
title = context.Base_translateString('Production Planning at ${date}', mapping= {'date': start_date.Date()}),
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