Commit bb2434bf authored by Romain Courteaud's avatar Romain Courteaud

Generate [source|destination]_section to generated simulated movement.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3648 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a03f6577
......@@ -180,12 +180,16 @@ class TransformationSourcingRule(Rule):
source_node = previous_supply_link.getSourceValue()
if source_node is not None:
source_value = source_node.getDestinationValue()
source_section_value = previous_supply_link.getSourceSectionValue()
# Generate the dict
stop_date = parent_movement.getStartDate()
movement_dict.update({
"ts": {
'source_value': source_value,
'source_section_value': source_section_value,
'destination_value': parent_movement.getSourceValue(),
'destination_section_value': \
parent_movement.getSourceSectionValue(),
'resource_value': parent_movement.getResourceValue(),
'variation_category_list': parent_movement.\
getVariationCategoryList(),
......
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