mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-27 06:21:59 +02:00
19.0 vanilla
This commit is contained in:
parent
ff721d030e
commit
7721452493
1826 changed files with 124775 additions and 274114 deletions
43
odoo-bringout-oca-ocb-l10n_cr/l10n_cr/models/template_cr.py
Normal file
43
odoo-bringout-oca-ocb-l10n_cr/l10n_cr/models/template_cr.py
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
# 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('cr')
|
||||
def _get_cr_template_data(self):
|
||||
return {
|
||||
'property_account_receivable_id': 'account_account_template_0_112001',
|
||||
'property_account_payable_id': 'account_account_template_0_211001',
|
||||
}
|
||||
|
||||
@template('cr', 'res.company')
|
||||
def _get_cr_res_company(self):
|
||||
return {
|
||||
self.env.company.id: {
|
||||
'account_fiscal_country_id': 'base.cr',
|
||||
'bank_account_code_prefix': '0.1112',
|
||||
'cash_account_code_prefix': '0.1111',
|
||||
'transfer_account_code_prefix': '0.1114',
|
||||
'account_default_pos_receivable_account_id': 'account_account_template_0_112011',
|
||||
'income_currency_exchange_account_id': 'account_account_template_0_450001',
|
||||
'expense_currency_exchange_account_id': 'account_account_template_0_530004',
|
||||
'account_sale_tax_id': 'account_tax_template_IV_0',
|
||||
'account_purchase_tax_id': 'account_tax_template_IV_1',
|
||||
'income_account_id': 'account_account_template_0_410001',
|
||||
'expense_account_id': 'account_account_template_0_511301',
|
||||
'account_stock_journal_id': 'inventory_valuation',
|
||||
'account_stock_valuation_id': 'account_account_template_0_113101',
|
||||
},
|
||||
}
|
||||
|
||||
@template('cr', 'account.account')
|
||||
def _get_cr_account_account(self):
|
||||
return {
|
||||
'account_account_template_0_113101': {
|
||||
'account_stock_expense_id': 'account_account_template_0_511302',
|
||||
'account_stock_variation_id': 'account_account_template_0_520001',
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue