You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
566 B
Python

8 months ago
# -*- coding: utf-8 -*-
from odoo import models, _
class AccountChartTemplate(models.Model):
_inherit = "account.chart.template"
def _load(self, company):
res = super(AccountChartTemplate, self)._load(company)
if not self.env['account_followup.followup.line'].search([('company_id', '=', company.id)]):
self.env['account_followup.followup.line'].create({
'company_id': company.id,
'name': _('First Reminder'),
'delay': 15,
})
return res