Commit dc676210 authored by Sebastien Robin's avatar Sebastien Robin

mrp: enable possibility to define Transformed Resource Lines with industrial phases

As part of a manufacturing, we can have products partially built (thus having a particular
industrial phase). However current code prevent setting as part of transformation lines a
resource associated to a particular industrial phase. There should be no reaons to avoid this.

industiral_phase is added to amount to allow getGeneratedAmountList (which is using
temp Amount documents) to handle correctly industrial_phase
parent db839e95
......@@ -88,6 +88,8 @@ class TransformedResource(AmountGeneratorLine):
result = list(self.getVariationRangeBaseCategoryList()) # The current resource variation
if 'trade_phase' not in result:
result.append('trade_phase')
if 'industrial_phase' not in result:
result.append('industrial_phase')
return result
def getCellAggregateKey(self):
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Category Property" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>industrial_phase_category</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Category Property</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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