Commit 81d2fc36 authored by Alexandre Boeglin's avatar Alexandre Boeglin

changed my_product to my_resource, as it sounds more generic and correct.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2096 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a92ce7c5
...@@ -97,11 +97,11 @@ class InvoiceTransactionRule(Rule, XMLMatrix): ...@@ -97,11 +97,11 @@ class InvoiceTransactionRule(Rule, XMLMatrix):
else : else :
my_destination_region = my_destination_address.getRegionValue() my_destination_region = my_destination_address.getRegionValue()
# Then, the product line # Then, the product line
my_product = my_invoice_line.getResourceValue() my_resource = my_invoice_line.getResourceValue()
if my_product is None : if my_resource is None :
my_product_line = None my_product_line = None
else : else :
my_product_line = my_product.getProductLineValue() my_product_line = my_resource.getProductLineValue()
# Finally, the InvoiceTransactionRule Matrix # Finally, the InvoiceTransactionRule Matrix
my_invoice_transaction_rule = applied_rule.getSpecialiseValue() my_invoice_transaction_rule = applied_rule.getSpecialiseValue()
......
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