mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] account_chart_update: Fix error when updating account templates with a currency defined (#683)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user