| 1 |
# Part of Odoo. See LICENSE file for full copyright and licensing details. |
| 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('hr_kuna') |
| 10 |
def _get_hr_kuna_template_data(self): |
| 11 |
return { |
| 12 |
'name': 'RRIF-ov računski plan za poduzetnike', |
| 13 |
'code_digits': '6', |
| 14 |
'use_storno_accounting': True, |
| 15 |
'property_account_receivable_id': 'kp_rrif1200', |
| 16 |
'property_account_payable_id': 'kp_rrif2200', |
| 17 |
} |
| 18 |
|
| 19 |
@template('hr_kuna', 'res.company') |
| 20 |
def _get_hr_kuna_res_company(self): |
| 21 |
return { |
| 22 |
self.env.company.id: { |
| 23 |
'account_fiscal_country_id': 'base.hr', |
| 24 |
'bank_account_code_prefix': '101', |
| 25 |
'cash_account_code_prefix': '102', |
| 26 |
'transfer_account_code_prefix': '1009', |
| 27 |
'account_default_pos_receivable_account_id': 'kp_rrif1213', |
| 28 |
'income_currency_exchange_account_id': 'kp_rrif1050', |
| 29 |
'expense_currency_exchange_account_id': 'kp_rrif4754', |
| 30 |
'expense_account_id': 'kp_rrif4199', |
| 31 |
'income_account_id': 'kp_rrif7500', |
| 32 |
}, |
| 33 |
} |