Multi is the default api for methods, it is not necessary to explicitly decorate methods with it, adds clutter and most people use it because they see that the rest of the code uses it. Done with `find . -type f -name '*.py' | xargs sed -i '/@api.multi/d'`
14 lines
464 B
Python
14 lines
464 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from odoo import api, fields, models, _
|
|
|
|
|
|
class AccountChartTemplate(models.Model):
|
|
_inherit = 'account.chart.template'
|
|
|
|
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)
|