From 5df66044a2539a0d1b6749bd20c72fed0758d2c5 Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Mon, 22 Mar 2004 21:48:50 +0000 Subject: [PATCH] added deliverable interface git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@605 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/OrderRule.py | 1 - product/ERP5/Document/TransformationRule.py | 4 ++-- product/ERP5/Document/TransformationSourcingRule.py | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/product/ERP5/Document/OrderRule.py b/product/ERP5/Document/OrderRule.py index 0c23ae4f6f..bf75878f3c 100755 --- a/product/ERP5/Document/OrderRule.py +++ b/product/ERP5/Document/OrderRule.py @@ -130,7 +130,6 @@ An ERP5 Rule...""" An applied rule can be expanded only if its parent movement is expanded. """ - delivery_type = 'Samples Packing List' delivery_line_type = 'Simulation Movement' # Get the order when we come from diff --git a/product/ERP5/Document/TransformationRule.py b/product/ERP5/Document/TransformationRule.py index aea001cebe..1362746e4a 100755 --- a/product/ERP5/Document/TransformationRule.py +++ b/product/ERP5/Document/TransformationRule.py @@ -229,7 +229,7 @@ An ERP5 Rule...""" quantity_unit = my_context_movement.getQuantityUnit(), destination_section = production_section, destination = production_node, - deliverable = 0 + deliverable = 1 ) # Mising quantity unit conversion for my_quantity !!!! XXXX produced_resource.setVariationCategoryList(my_context_movement.getVariationCategoryList()) @@ -267,7 +267,7 @@ An ERP5 Rule...""" source = production_node, source_section = production_section, destination_list = (), - deliverable = 0 + deliverable = 1 ) #LOG('RESOURCE', 0, str(amount_line['resource'].getRelativeUrl())) #LOG('VC List', 0, str(amount_line['variation_category_list'])) diff --git a/product/ERP5/Document/TransformationSourcingRule.py b/product/ERP5/Document/TransformationSourcingRule.py index c117ecf0af..23d2d016ae 100755 --- a/product/ERP5/Document/TransformationSourcingRule.py +++ b/product/ERP5/Document/TransformationSourcingRule.py @@ -196,7 +196,7 @@ An ERP5 Rule...""" quantity_unit = my_context_movement.getQuantityUnit(), destination = my_context_movement.getSource(), destination_section = my_context_movement.getSourceSection(), - deliverable = 1 + deliverable = 0 # We do not need to source explicitely operations ) transformation_source.setVariationCategoryList( my_context_movement.getVariationCategoryList()) -- 2.30.9