Skip to content
Snippets Groups Projects
Commit 66527c20 authored by AMZIL Ayoub's avatar AMZIL Ayoub Committed by AMZIL AYOUB (amay)
Browse files

[FIX] account: accounting dashboard fix amount calculation


The issue:
a traceback raised because of float * NoneType

The fix:
parenthesis should be added to the expression

opw-3366260

closes odoo/odoo#125794

Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
parent 1f4395ea
No related branches found
No related tags found
No related merge requests found
......@@ -420,7 +420,7 @@ class account_journal(models.Model):
# existence of the key in the cache instead.
if key not in curr_cache:
curr_cache[key] = self.env['res.currency']._get_conversion_rate(*key)
amount = curr_cache[key] * result.get('amount_total', 0) or 0
amount = curr_cache[key] * (result.get('amount_total') or 0)
rslt_sum += target_currency.round(amount)
return (rslt_count, rslt_sum)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment