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,7 +196,8 @@ class TransformedResource(XMLObject, XMLMatrix, Amount):
# Continuous variations will be implemented in a future version of ERP5
quantity_unit = self.getQuantityUnit()
tmp_amount.setQuantityUnitValue(quantity_unit)
if quantity_unit is not None:
tmp_amount.setQuantityUnitValue(quantity_unit)
efficiency = self.getEfficiency()
......
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