diff --git a/product/ERP5/Document/Resource.py b/product/ERP5/Document/Resource.py index 2b10871717a8a5ac245f748dc462633c2c7e98e9..d85a904785d20087b1e3f3139e3b9ed52c873dc6 100755 --- a/product/ERP5/Document/Resource.py +++ b/product/ERP5/Document/Resource.py @@ -529,7 +529,7 @@ class Resource(XMLMatrix, CoreResource, Variated): priced_quantity = self.getPricedQuantity() unit_base_price = base_price / priced_quantity else: - priced_quantity = mapped_value.getPricedQuantity() + priced_quantity = self.getPricedQuantity() unit_base_price = base_price / priced_quantity return unit_base_price