Commit 356e5a33 authored by Sebastien Robin's avatar Sebastien Robin

mrp: it was bad idea to set transformation on line if several transformations are found

Some tests where explicitely checking that transformation is not set in case
several are found. It is indeed better to ask user decision in such case.
parent 11489b1d
......@@ -11,6 +11,6 @@ if transformation is None:
portal_type=portal.getPortalTransformationTypeList(),
validation_state="!=invalidated",
default_resource_uid=resource_uid)
if len(transformation_list) >= 1:
if len(transformation_list) == 1:
transformation = transformation_list[0].getRelativeUrl()
production_order_line.setSpecialise(transformation)
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