forked from Mapan/odoo17e
18 lines
689 B
Python
18 lines
689 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
from odoo import models
|
|
from odoo.addons.account.models.chart_template import template
|
|
|
|
|
|
class AccountChartTemplate(models.AbstractModel):
|
|
_inherit = 'account.chart.template'
|
|
|
|
@template('ie', 'res.company')
|
|
def _get_ie_reports_res_company(self):
|
|
default_accounts = {}
|
|
if self.ref('l10n_ie_account_2161', False):
|
|
default_accounts['deferred_expense_account_id'] = 'l10n_ie_account_2161'
|
|
if self.ref('l10n_ie_account_39', False):
|
|
default_accounts['deferred_revenue_account_id'] = 'l10n_ie_account_39'
|
|
|
|
return {self.env.company.id: default_accounts}
|