mirror of
https://github.com/bringout/oca-ocb-l10n_me-africa.git
synced 2026-04-28 02:02:03 +02:00
19.0 vanilla
This commit is contained in:
parent
c5006a6999
commit
80293571e7
420 changed files with 21812 additions and 44297 deletions
58
odoo-bringout-oca-ocb-l10n_tr/l10n_tr/models/template_tr.py
Normal file
58
odoo-bringout-oca-ocb-l10n_tr/l10n_tr/models/template_tr.py
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
# 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('tr')
|
||||
def _get_tr_template_data(self):
|
||||
return {
|
||||
'property_account_receivable_id': 'tr120',
|
||||
'property_account_payable_id': 'tr320',
|
||||
'code_digits': '6',
|
||||
}
|
||||
|
||||
@template('tr', 'res.company')
|
||||
def _get_tr_res_company(self):
|
||||
return {
|
||||
self.env.company.id: {
|
||||
'account_fiscal_country_id': 'base.tr',
|
||||
'bank_account_code_prefix': '102',
|
||||
'cash_account_code_prefix': '100',
|
||||
'transfer_account_code_prefix': '103',
|
||||
'account_default_pos_receivable_account_id': 'tr123',
|
||||
'income_currency_exchange_account_id': 'tr646',
|
||||
'expense_currency_exchange_account_id': 'tr656',
|
||||
'account_journal_suspense_account_id': 'tr102999',
|
||||
'account_sale_tax_id': 'tr_s_20',
|
||||
'account_purchase_tax_id': 'tr_p_20',
|
||||
'deferred_expense_account_id': 'tr180',
|
||||
'deferred_revenue_account_id': 'tr380',
|
||||
'expense_account_id': 'tr150',
|
||||
'income_account_id': 'tr600',
|
||||
'tax_calculation_rounding_method': 'round_per_line',
|
||||
'account_stock_journal_id': 'inventory_valuation',
|
||||
'account_stock_valuation_id': 'tr150',
|
||||
},
|
||||
}
|
||||
|
||||
@template('tr', 'account.journal')
|
||||
def _get_tr_account_journal(self):
|
||||
return {
|
||||
'cash': {
|
||||
'name': _("Cash"),
|
||||
'type': 'cash',
|
||||
'show_on_dashboard': True,
|
||||
},
|
||||
}
|
||||
|
||||
@template('tr', 'account.account')
|
||||
def _get_tr_account_account(self):
|
||||
return {
|
||||
'tr150': {
|
||||
'account_stock_expense_id': 'tr710',
|
||||
'account_stock_variation_id': 'tr713',
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue