Commit 4deddaa4 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Cédric Le Ninivin

erp5_mrp: Fix/update test Transformation Simulation Rule and select for Manufacturing Order Builder

parent a4c23866
result_list = context.portal_catalog(
parent_specialise_reference="default_production_manufacturing_rule",
grand_parent_simulation_state=("confirmed", "planned"),
parent_specialise_reference="default_production_rule",
delivery_uid=None,
left_join_list=("delivery_uid",),
select_list=("delivery_uid",),
......
......@@ -9,7 +9,5 @@ if (len(specialise_list) == 1 and
return True
# Case Manufacturing Order is generated by Simulation
if parent_specialise_portal_type == "Production Simulation Rule":
movement = context.getDeliveryValue()
return movement is not None and movement.getPortalType() in (
"Manufacturing Order Line", "Manufacturing Order Cell")
return True
return False
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