[FIX] account: expected currency value in compute tax total.
Expected singleton res.currency() trace back that occurs in account/account_move : _compute_tax_total was caught by sentry. Because currency is not available when we remove journal_id in account_move. In res.company currency_id is a required field. So we are accessing currency value from res.company. Sentry-3946448424 closes odoo/odoo#113927 X-original-commit: 326ae981b767a9ae3cacd50099dcce354df591d8 Signed-off-by: William André (wan) <wan@odoo.com>
This commit is contained in:
@@ -1160,7 +1160,7 @@ class AccountMove(models.Model):
|
||||
|
||||
kwargs = {
|
||||
'base_lines': base_line_values_list,
|
||||
'currency': move.currency_id or move.journal_id.currency_id or move.journal_id.company_id.currency_id,
|
||||
'currency': move.currency_id or move.journal_id.currency_id or move.company_id.currency_id,
|
||||
}
|
||||
|
||||
if move.id:
|
||||
|
||||
Reference in New Issue
Block a user