This commit replaces the old online payments API of the `payment` module with the new one and adapts to it all the implementing modules. See the merge commit for more details. task-2085989 task-2119838 task-2165982 task-2289255 Co-authored-by: Victor Feyens <vfe@odoo.com>
14 lines
460 B
Python
14 lines
460 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models
|
|
|
|
|
|
class AccountChartTemplate(models.Model):
|
|
_inherit = 'account.chart.template'
|
|
|
|
def _create_bank_journals(self, company, acc_template_ref):
|
|
res = super()._create_bank_journals(company, acc_template_ref)
|
|
|
|
# Try to generate the missing journals
|
|
return res + self.env['payment.acquirer']._create_missing_journals(company=company)
|