Commit 9ce895fe authored by Jérome Perrin's avatar Jérome Perrin

Aged Balance Report: brain.total_price can be None

parent f1fde2a5
......@@ -105,7 +105,7 @@ for brain in portal.portal_simulation.getMovementHistoryList(\n
movement = brain.getObject()\n
transaction = movement.getParentValue()\n
\n
total_price = brain.total_price\n
total_price = brain.total_price or 0\n
if account_type == \'account_type/liability/payable\':\n
total_price = - total_price\n
\n
......
1569
\ No newline at end of file
1570
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