Commit 5df66044 authored by Jean-Paul Smets's avatar Jean-Paul Smets

added deliverable interface


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@605 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d8fe83d7
...@@ -130,7 +130,6 @@ An ERP5 Rule...""" ...@@ -130,7 +130,6 @@ An ERP5 Rule..."""
An applied rule can be expanded only if its parent movement An applied rule can be expanded only if its parent movement
is expanded. is expanded.
""" """
delivery_type = 'Samples Packing List'
delivery_line_type = 'Simulation Movement' delivery_line_type = 'Simulation Movement'
# Get the order when we come from # Get the order when we come from
......
...@@ -229,7 +229,7 @@ An ERP5 Rule...""" ...@@ -229,7 +229,7 @@ An ERP5 Rule..."""
quantity_unit = my_context_movement.getQuantityUnit(), quantity_unit = my_context_movement.getQuantityUnit(),
destination_section = production_section, destination_section = production_section,
destination = production_node, destination = production_node,
deliverable = 0 deliverable = 1
) )
# Mising quantity unit conversion for my_quantity !!!! XXXX # Mising quantity unit conversion for my_quantity !!!! XXXX
produced_resource.setVariationCategoryList(my_context_movement.getVariationCategoryList()) produced_resource.setVariationCategoryList(my_context_movement.getVariationCategoryList())
...@@ -267,7 +267,7 @@ An ERP5 Rule...""" ...@@ -267,7 +267,7 @@ An ERP5 Rule..."""
source = production_node, source = production_node,
source_section = production_section, source_section = production_section,
destination_list = (), destination_list = (),
deliverable = 0 deliverable = 1
) )
#LOG('RESOURCE', 0, str(amount_line['resource'].getRelativeUrl())) #LOG('RESOURCE', 0, str(amount_line['resource'].getRelativeUrl()))
#LOG('VC List', 0, str(amount_line['variation_category_list'])) #LOG('VC List', 0, str(amount_line['variation_category_list']))
......
...@@ -196,7 +196,7 @@ An ERP5 Rule...""" ...@@ -196,7 +196,7 @@ An ERP5 Rule..."""
quantity_unit = my_context_movement.getQuantityUnit(), quantity_unit = my_context_movement.getQuantityUnit(),
destination = my_context_movement.getSource(), destination = my_context_movement.getSource(),
destination_section = my_context_movement.getSourceSection(), destination_section = my_context_movement.getSourceSection(),
deliverable = 1 deliverable = 0 # We do not need to source explicitely operations
) )
transformation_source.setVariationCategoryList( transformation_source.setVariationCategoryList(
my_context_movement.getVariationCategoryList()) my_context_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