oca-ocb-l10n_europe/odoo-bringout-oca-ocb-l10n_bg/l10n_bg/models/template_bg.py
Ernad Husremovic 7721452493 19.0 vanilla
2026-03-09 09:31:28 +01:00

35 lines
1.4 KiB
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('bg')
def _get_bg_template_data(self):
return {
'property_account_receivable_id': 'l10n_bg_411',
'property_account_payable_id': 'l10n_bg_401',
'default_cash_difference_income_account_id': 'l10n_bg_791001',
'default_cash_difference_expense_account_id': 'l10n_bg_691001',
'code_digits': '6',
}
@template('bg', 'res.company')
def _get_bg_res_company(self):
return {
self.env.company.id: {
'account_fiscal_country_id': 'base.bg',
'bank_account_code_prefix': '503',
'cash_account_code_prefix': '501',
'transfer_account_code_prefix': '430',
'income_currency_exchange_account_id': 'l10n_bg_624',
'expense_currency_exchange_account_id': 'l10n_bg_624',
'account_sale_tax_id': 'l10n_bg_sale_vat_20',
'account_purchase_tax_id': 'l10n_bg_purchase_vat_20_ftc',
'account_default_pos_receivable_account_id': 'l10n_bg_4111',
'expense_account_id': 'l10n_bg_601',
'income_account_id': 'l10n_bg_701',
},
}