Commit caad99d5 authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Klaus Wölfel

erp5_production_planning: don't include not editable production order

parent 9be5172d
......@@ -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