From 0d4fb8d07e55fbd1b6254cd11e7091af24599d39 Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Fri, 5 Mar 2004 10:20:49 +0000 Subject: [PATCH] getRootAppliedRule must be called on applied_rule, not on self. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@540 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/TransformationRule.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/product/ERP5/Document/TransformationRule.py b/product/ERP5/Document/TransformationRule.py index b7805bbc1b..aea001cebe 100755 --- a/product/ERP5/Document/TransformationRule.py +++ b/product/ERP5/Document/TransformationRule.py @@ -237,7 +237,9 @@ An ERP5 Rule...""" # Add lines line_number = 0 acceptable_id_list = ['produced_resource'] - production_order = self.getRootAppliedRule().getCausalityValue() # get the production order + # getRootAppliedRules is not defined + #production_order = self.getRootAppliedRule().getCausalityValue() # get the production order + production_order = applied_rule.getRootAppliedRule().getCausalityValue() # get the production order filter_list = production_order.contentValues(filter={'portal_type': 'Amount Filter'}) for amount_line in amount_list: # Apply each amount filter -- 2.30.9