diff --git a/product/ERP5/Document/InvoiceTransactionRule.py b/product/ERP5/Document/InvoiceTransactionRule.py index a39ef853671c24ddaf1ab99aaa19e16adae93eb4..627d402932ba6ec55f8b4482acf9a1a714514b25 100644 --- a/product/ERP5/Document/InvoiceTransactionRule.py +++ b/product/ERP5/Document/InvoiceTransactionRule.py @@ -225,8 +225,8 @@ class InvoiceTransactionRule(Rule, PredicateMatrix): precision = None section = prevision_line.get(arrow, None) if section is not None: - currency_url = self.restrictedTraverse(section).getProperty( - 'price_currency', None) + section = self.restrictedTraverse(section) + currency_url = section.getProperty('price_currency', None) else: currency_url = None if currency_url is not None and prevision_currency != currency_url: