[FIX] account: fix reference to currency object

rounding_line_vals is invoked directly with a .create(), so the "currency_id" key's value should be an integer. See line 810.

This is hard to catch, i use Sentry on my servers and i found this bug. I cannot provide steps to reproduce, as i just see this bug report in Sentry.

closes odoo/odoo#71771

X-original-commit: 38de8fc52b4d6f6bdab4dd5e28eb9e3e5315145c
Signed-off-by: William André (wan) <wan@odoo.com>
This commit is contained in:
Csaba Tóth
2021-06-04 16:02:31 +00:00
committed by GitHub
parent 9e743cb31c
commit bd4886446b
+1 -1
View File
@@ -798,7 +798,7 @@ class AccountMove(models.Model):
'amount_currency': diff_amount_currency,
'partner_id': self.partner_id.id,
'move_id': self.id,
'currency_id': self.currency_id,
'currency_id': self.currency_id.id,
'company_id': self.company_id.id,
'company_currency_id': self.company_id.currency_id.id,
'is_rounding_line': True,