mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-27 01:22:05 +02:00
19.0 vanilla
This commit is contained in:
parent
ff721d030e
commit
7721452493
1826 changed files with 124775 additions and 274114 deletions
2
odoo-bringout-oca-ocb-l10n_et/l10n_et/models/__init__.py
Normal file
2
odoo-bringout-oca-ocb-l10n_et/l10n_et/models/__init__.py
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from . import template_et
|
||||
35
odoo-bringout-oca-ocb-l10n_et/l10n_et/models/template_et.py
Normal file
35
odoo-bringout-oca-ocb-l10n_et/l10n_et/models/template_et.py
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# 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('et')
|
||||
def _get_et_template_data(self):
|
||||
return {
|
||||
'code_digits': '6',
|
||||
'property_account_receivable_id': 'l10n_et2211',
|
||||
'property_account_payable_id': 'l10n_et3002',
|
||||
}
|
||||
|
||||
@template('et', 'res.company')
|
||||
def _get_et_res_company(self):
|
||||
return {
|
||||
self.env.company.id: {
|
||||
'account_fiscal_country_id': 'base.et',
|
||||
'bank_account_code_prefix': '211',
|
||||
'cash_account_code_prefix': '211',
|
||||
'transfer_account_code_prefix': '212',
|
||||
'account_default_pos_receivable_account_id': 'l10n_et2215',
|
||||
'income_currency_exchange_account_id': 'l10n_et6435',
|
||||
'expense_currency_exchange_account_id': 'l10n_et6436',
|
||||
'account_journal_early_pay_discount_loss_account_id': 'l10n_et626001',
|
||||
'account_journal_early_pay_discount_gain_account_id': 'l10n_et120001',
|
||||
'account_sale_tax_id': 'id_tax03',
|
||||
'account_purchase_tax_id': 'id_tax08',
|
||||
'expense_account_id': 'l10n_et2301',
|
||||
'income_account_id': 'l10n_et1100',
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue