From 2340cf01df69be5f3397d60ace1878c438374db0 Mon Sep 17 00:00:00 2001 From: Gelu Date: Mon, 27 Aug 2018 10:08:55 +0200 Subject: [PATCH] [FIX] account_chart_update: Fix error when updating account templates with a currency defined (#683) --- account_chart_update/wizard/wizard_chart_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_chart_update/wizard/wizard_chart_update.py b/account_chart_update/wizard/wizard_chart_update.py index 4c7b1896b..3f9c00e7f 100644 --- a/account_chart_update/wizard/wizard_chart_update.py +++ b/account_chart_update/wizard/wizard_chart_update.py @@ -596,7 +596,7 @@ class WizardUpdateChartsAccounts(models.TransientModel): def _create_account_from_template(self, account_template): return self.env["account.account"].create({ 'name': account_template.name, - 'currency_id': account_template.currency_id, + 'currency_id': account_template.currency_id.id, 'code': self.padded_code(account_template.code), 'user_type_id': account_template.user_type_id.id, 'reconcile': account_template.reconcile,