From 81d2fc364764b038413f8ea47b0e0e169d647185 Mon Sep 17 00:00:00 2001
From: Alexandre Boeglin <alex@nexedi.com>
Date: Wed, 22 Dec 2004 16:13:51 +0000
Subject: [PATCH] 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
---
 product/ERP5/Document/InvoiceTransactionRule.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/product/ERP5/Document/InvoiceTransactionRule.py b/product/ERP5/Document/InvoiceTransactionRule.py
index 9737ede5dc..7c54efe158 100755
--- a/product/ERP5/Document/InvoiceTransactionRule.py
+++ b/product/ERP5/Document/InvoiceTransactionRule.py
@@ -97,11 +97,11 @@ class InvoiceTransactionRule(Rule, XMLMatrix):
       else :
         my_destination_region = my_destination_address.getRegionValue()
       # Then, the product line
-      my_product = my_invoice_line.getResourceValue()
-      if my_product is None :
+      my_resource = my_invoice_line.getResourceValue()
+      if my_resource is None :
         my_product_line = None
       else :
-        my_product_line = my_product.getProductLineValue()
+        my_product_line = my_resource.getProductLineValue()
       # Finally, the InvoiceTransactionRule Matrix
       my_invoice_transaction_rule = applied_rule.getSpecialiseValue()
 
-- 
2.30.9