| 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('kr') |
| 10 |
def _get_kr_template_data(self): |
| 11 |
return { |
| 12 |
'code_digits': '6', |
| 13 |
'property_account_receivable_id': 'l10n_kr_111301', |
| 14 |
'property_account_payable_id': 'l10n_kr_212001', |
| 15 |
'property_stock_valuation_account_id': 'l10n_kr_112101', |
| 16 |
'property_stock_account_production_cost_id': 'l10n_kr_112704', |
| 17 |
} |
| 18 |
|
| 19 |
@template('kr', 'res.company') |
| 20 |
def _get_kr_res_company(self): |
| 21 |
return { |
| 22 |
self.env.company.id: { |
| 23 |
'account_price_include': 'tax_included', |
| 24 |
'account_fiscal_country_id': 'base.kr', |
| 25 |
'transfer_account_code_prefix': '1116', |
| 26 |
'bank_account_code_prefix': '1111', |
| 27 |
'account_default_pos_receivable_account_id': 'l10n_kr_111303', |
| 28 |
'income_currency_exchange_account_id': 'l10n_kr_420007', |
| 29 |
'expense_currency_exchange_account_id': 'l10n_kr_620007', |
| 30 |
'transfer_account_id': 'l10n_kr_111611', |
| 31 |
'account_journal_suspense_account_id': 'l10n_kr_111610', |
| 32 |
'account_journal_early_pay_discount_gain_account_id': 'l10n_kr_410003', |
| 33 |
'account_journal_early_pay_discount_loss_account_id': 'l10n_kr_410008', |
| 34 |
'account_sale_tax_id': 'l10n_kr_sale_10', |
| 35 |
'account_purchase_tax_id': 'l10n_kr_purchase_10', |
| 36 |
'deferred_expense_account_id': 'l10n_kr_111401', |
| 37 |
'deferred_revenue_account_id': 'l10n_kr_216005', |
| 38 |
'account_production_wip_account_id': 'l10n_kr_112401', |
| 39 |
'account_production_wip_overhead_account_id': 'l10n_kr_610013', |
| 40 |
'default_cash_difference_income_account_id': 'l10n_kr_420013', |
| 41 |
'default_cash_difference_expense_account_id': 'l10n_kr_620014', |
| 42 |
'expense_account_id': 'l10n_kr_510001', |
| 43 |
'income_account_id': 'l10n_kr_410001', |
| 44 |
'tax_calculation_rounding_method': 'round_per_line', |
| 45 |
}, |
| 46 |
} |