[FIX] account_chart_update: Fix error when updating account templates with a currency defined (#683)

This commit is contained in:
Gelu
2018-08-27 10:08:55 +02:00
committed by Pedro M. Baeza
parent 7bdbc9ada2
commit 2340cf01df

View File

@@ -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,