| 1 |
|
| 2 |
from odoo import models |
| 3 |
from odoo.addons.account.models.chart_template import template |
| 4 |
|
| 5 |
|
| 6 |
class AccountChartTemplate(models.AbstractModel): |
| 7 |
_inherit = 'account.chart.template' |
| 8 |
|
| 9 |
@template('hn') |
| 10 |
def _get_hn_template_data(self): |
| 11 |
return { |
| 12 |
'property_account_receivable_id': 'cta110201', |
| 13 |
'property_account_payable_id': 'cta210101', |
| 14 |
'code_digits': '9', |
| 15 |
} |
| 16 |
|
| 17 |
@template('hn', 'res.company') |
| 18 |
def _get_hn_res_company(self): |
| 19 |
return { |
| 20 |
self.env.company.id: { |
| 21 |
'account_fiscal_country_id': 'base.hn', |
| 22 |
'bank_account_code_prefix': '1.1.01.', |
| 23 |
'cash_account_code_prefix': '1.1.01.', |
| 24 |
'transfer_account_code_prefix': '1.1.01.00', |
| 25 |
'account_default_pos_receivable_account_id': 'cta110205', |
| 26 |
'income_currency_exchange_account_id': 'cta410103', |
| 27 |
'expense_currency_exchange_account_id': 'cta710101', |
| 28 |
'account_journal_early_pay_discount_loss_account_id': 'cta620202', |
| 29 |
'account_journal_early_pay_discount_gain_account_id': 'cta420102', |
| 30 |
'account_sale_tax_id': 'impuestos_plantilla_isv_por_pagar', |
| 31 |
'account_purchase_tax_id': 'impuestos_plantilla_isv_por_cobrar', |
| 32 |
'income_account_id': 'cta410101', |
| 33 |
'expense_account_id': 'cta510101', |
| 34 |
'account_stock_journal_id': 'inventory_valuation', |
| 35 |
'account_stock_valuation_id': 'cta130601', |
| 36 |
}, |
| 37 |
} |
| 38 |
|
| 39 |
@template('hn', 'account.account') |
| 40 |
def _get_hn_account_account(self): |
| 41 |
return { |
| 42 |
'cta130601': { |
| 43 |
'account_stock_expense_id': 'cta510101', |
| 44 |
'account_stock_variation_id': 'cta620201', |
| 45 |
}, |
| 46 |
} |