summaryrefslogtreecommitdiff
path: root/addons/payment/models/chart_template.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/payment/models/chart_template.py')
-rw-r--r--addons/payment/models/chart_template.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/payment/models/chart_template.py b/addons/payment/models/chart_template.py
index 515103316be..ddf814d7d93 100644
--- a/addons/payment/models/chart_template.py
+++ b/addons/payment/models/chart_template.py
@@ -3,12 +3,12 @@
from odoo import api, fields, models, _
-class WizardMultiChartsAccounts(models.TransientModel):
- _inherit = 'wizard.multi.charts.accounts'
+class AccountChartTemplate(models.Model):
+ _inherit = 'account.chart.template'
@api.multi
- def _create_bank_journals_from_o2m(self, company, acc_template_ref):
- res = super(WizardMultiChartsAccounts, self)._create_bank_journals_from_o2m(company, acc_template_ref)
+ def _create_bank_journals(self, company, acc_template_ref):
+ res = super(AccountChartTemplate, self)._create_bank_journals(company, acc_template_ref)
# Try to generate the missing journals
return res + self.env['payment.acquirer']._create_missing_journal_for_acquirers(company=company)