Commit fbe109b7 authored by Romain Courteaud's avatar Romain Courteaud

Bug fix: correct getAggregatedAmountList when no quantity unit is defined on line.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2559 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1879c17e
...@@ -196,6 +196,7 @@ class TransformedResource(XMLObject, XMLMatrix, Amount): ...@@ -196,6 +196,7 @@ class TransformedResource(XMLObject, XMLMatrix, Amount):
# Continuous variations will be implemented in a future version of ERP5 # Continuous variations will be implemented in a future version of ERP5
quantity_unit = self.getQuantityUnit() quantity_unit = self.getQuantityUnit()
if quantity_unit is not None:
tmp_amount.setQuantityUnitValue(quantity_unit) tmp_amount.setQuantityUnitValue(quantity_unit)
......
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