Commit 0d4fb8d0 authored by Jean-Paul Smets's avatar Jean-Paul Smets

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
parent d52c798c
...@@ -237,7 +237,9 @@ An ERP5 Rule...""" ...@@ -237,7 +237,9 @@ An ERP5 Rule..."""
# Add lines # Add lines
line_number = 0 line_number = 0
acceptable_id_list = ['produced_resource'] 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'}) filter_list = production_order.contentValues(filter={'portal_type': 'Amount Filter'})
for amount_line in amount_list: for amount_line in amount_list:
# Apply each amount filter # Apply each amount filter
......
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