mirror of
https://github.com/bringout/oca-ocb-l10n_americas.git
synced 2026-04-27 00:32:01 +02:00
19.0 vanilla
This commit is contained in:
parent
89c6e82fe7
commit
1b82c20a58
572 changed files with 43570 additions and 53303 deletions
47
odoo-bringout-oca-ocb-l10n_cl/l10n_cl/models/template_cl.py
Normal file
47
odoo-bringout-oca-ocb-l10n_cl/l10n_cl/models/template_cl.py
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
# 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('cl')
|
||||
def _get_cl_template_data(self):
|
||||
return {
|
||||
'code_digits': '6',
|
||||
'property_account_receivable_id': 'account_110310',
|
||||
'property_account_payable_id': 'account_210210',
|
||||
'property_stock_valuation_account_id': 'account_110610',
|
||||
}
|
||||
|
||||
@template('cl', 'res.company')
|
||||
def _get_cl_res_company(self):
|
||||
return {
|
||||
self.env.company.id: {
|
||||
'anglo_saxon_accounting': True,
|
||||
'account_fiscal_country_id': 'base.cl',
|
||||
'bank_account_code_prefix': '1101',
|
||||
'cash_account_code_prefix': '1101',
|
||||
'transfer_account_code_prefix': '117',
|
||||
'account_default_pos_receivable_account_id': 'account_110421',
|
||||
'income_currency_exchange_account_id': 'account_320265',
|
||||
'expense_currency_exchange_account_id': 'account_410195',
|
||||
'tax_calculation_rounding_method': 'round_globally',
|
||||
'account_sale_tax_id': 'ITAX_19',
|
||||
'account_purchase_tax_id': 'OTAX_19',
|
||||
'expense_account_id': 'account_410235',
|
||||
'income_account_id': 'account_310115',
|
||||
'account_stock_journal_id': 'inventory_valuation',
|
||||
'account_stock_valuation_id': 'account_110612',
|
||||
},
|
||||
}
|
||||
|
||||
@template('cl', 'account.account')
|
||||
def _get_cl_account_account(self):
|
||||
return {
|
||||
'account_110612': {
|
||||
'account_stock_expense_id': 'account_410230',
|
||||
'account_stock_variation_id': 'account_603100',
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue