Commit a49d3b9e authored by Sebastien Robin's avatar Sebastien Robin

mrp: allow edition of line quantities even if industrial_phase is set (and in...

mrp: allow edition of line quantities even if industrial_phase is set (and in general, even if option categories are set)
parent dbe2d97e
No related merge requests found
......@@ -131,7 +131,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: here.isMovement() and not here.getVariationCategoryList()</string> </value>
<value> <string>python: here.isMovement() and not here.getVariationCategoryList(omit_optional_variation=1)</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -13,7 +13,7 @@ to create cells and set quantities on cells.
if not context.isMovement():
return False
if context.getVariationCategoryList() and not 'Cell' in context.getPortalType():
if context.getVariationCategoryList(omit_optional_variation=1) and not 'Cell' in context.getPortalType():
return False
return not (context.getResource() and context.getResourceValue().getAggregatedPortalTypeList())
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