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