Commit 15926af4 authored by Jérome Perrin's avatar Jérome Perrin

Fix bad conditional in getInventoryAssetPrice that makes sometimes adding float and None


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5654 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3c225291
......@@ -622,7 +622,7 @@ class SimulationTool (BaseTool):
total_result = 0.0
if len(result) > 0:
for result_line in result:
if result_line.inventory is not None:
if result_line.total_price is not None:
total_result += result_line.total_price
return total_result
......
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