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
547 B
Python
20 lines
547 B
Python
# -*- 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
|