Commit 3dd49162 authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Cédric Le Ninivin

erp5_production_planning: don't include not editable production order

parent cf35942c
......@@ -30,7 +30,8 @@ for cell_keys in production_planning.getCellKeys():
# Check if it existes a production order for the date
kw = {
'portal_type': 'Production Order',
'delivery.start_date': {'query': start_date, 'type': 'date'}
'delivery.start_date': {'query': start_date, 'type': 'date'},
'simulation_state' : ('planned','auto_planned')
}
production_order_list = catalog_method(**kw)
if len(production_order_list):
......
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