CategoryTree get_total fails with unsupported operand type(s) for +=: 'decimal.Decimal' and 'NoneType'
If for some reason the cost or revenue is NULL
the get_total method crashes.
This could happen if a record has a null value for a not required field like cost_price
, unit_price
or currency rate.