Commit 91619838 authored by Łukasz Nowak's avatar Łukasz Nowak

erp5_trade: Allow to edit quantity for Items

It is unsure if quantity should not be editable in case of Items
aggregated on the movement.

Additionally some designs with Items require setting quantity on
movements.
parent 667bea00
......@@ -6,8 +6,6 @@ cannot edit this line which is just a container, but no actual movement.
* If this line has variation category list, then it means it's a line that
will contain cell, so it's already not possible to set quantity, user have
to create cells and set quantities on cells.
* If items are used, quantity is set by the item quantity.
"""
if not context.isMovement():
......@@ -16,4 +14,4 @@ if not context.isMovement():
if context.getVariationCategoryList(omit_optional_variation=1) and not 'Cell' in context.getPortalType():
return False
return not (context.getResource() and context.getResourceValue().getAggregatedPortalTypeList())
return True
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