29 lines
847 B
Python
29 lines
847 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('be_comp')
|
|
def _get_be_comp_template_data(self):
|
|
return {
|
|
'name': _('Companies'),
|
|
'parent': 'be',
|
|
'code_digits': '6',
|
|
'sequence': 0,
|
|
}
|
|
|
|
@template('be_comp', 'res.company')
|
|
def _get_be_comp_res_company(self):
|
|
return {
|
|
self.env.company.id: {
|
|
'account_fiscal_country_id': 'base.be',
|
|
'bank_account_code_prefix': '550',
|
|
'cash_account_code_prefix': '570',
|
|
'transfer_account_code_prefix': '580',
|
|
},
|
|
}
|