Skip to content
Permalink
Browse files

[ADD] l10n_id: Introducing Indonesian localization

Added Chart of Accounts, taxes and other related data

Task ID: 42243
Issue: #21427

Courtesy: www.vitraining.com
  • Loading branch information...
hsh-odoo authored and jco-odoo committed Dec 6, 2017
1 parent 3936d65 commit 4b7162ffd3f92eedaf0cc7b05adce263f62b9b28
@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

{
'name': 'Indonesian - Accounting',
'version': '1.0',
'category': 'Localization',
'description': """
This is the latest Indonesian Odoo localisation necessary to run Odoo accounting for SMEs with:
=================================================================================================
- generic Indonesian chart of accounts
- tax structure""",
'author': 'vitraining.com',
'website': 'http://www.vitraining.com',
'depends': ['account', 'base_iban', 'base_vat'],
'data': [
'data/account_chart_template_data.xml',
'data/account.account.template.csv',
'data/account_chart_template_post_data.xml',
'data/account_tax_template_data.xml',
'data/account_chart_template_configuration_data.xml',
],
}

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">
<function model="account.chart.template" name="try_loading_for_current_company">
<value eval="[ref('l10n_id_chart')]"/>
</function>
</odoo>
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="l10n_id_chart" model="account.chart.template">
<field name="name">Indonesian Account Chart Template</field>
<field name="bank_account_code_prefix">1112</field>
<field name="cash_account_code_prefix">1111</field>
<field name="transfer_account_code_prefix">1999999</field>
<field name="code_digits">8</field>
<field name="currency_id" ref="base.IDR"/>
</record>
</odoo>
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="l10n_id_chart" model="account.chart.template">
<field name="property_account_receivable_id" ref="a_1_121001"/>
<field name="property_account_payable_id" ref="a_2_110001"/>
<field name="property_account_expense_categ_id" ref="a_5_100001"/>
<field name="property_account_income_categ_id" ref="a_4_100001"/>
<field name="property_stock_account_input_categ_id" ref="a_2_900000"/>
<field name="property_stock_account_output_categ_id" ref="a_2_900000"/>
<field name="property_stock_valuation_account_id" ref="a_1_130018"/>
<field name="income_currency_exchange_account_id" ref="a_8_110001"/>
<field name="expense_currency_exchange_account_id" ref="a_9_110001"/>
<field name="use_anglo_saxon" eval="1"/>
</record>
</odoo>
@@ -0,0 +1,190 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<record id="tax_ST1" model="account.tax.template">
<field name="description">ST1</field>
<field name="chart_template_id" ref="l10n_id_chart"/>
<field name="type_tax_use">sale</field>
<field name="name">10%</field>
<field name="amount_type">percent</field>
<field name="amount">10.0</field>
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a_2_122101'),
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a_2_122101'),
}),
]"/>
</record>

<record id="tax_PT1" model="account.tax.template">
<field name="description">PT1</field>
<field name="chart_template_id" ref="l10n_id_chart"/>
<field name="type_tax_use">purchase</field>
<field name="name">10%</field>
<field name="amount_type">percent</field>
<field name="amount">10.0</field>
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a_2_122102'),
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a_2_122102'),
}),
]"/>
</record>

<record id="tax_ST0" model="account.tax.template">
<field name="description">ST0</field>
<field name="chart_template_id" ref="l10n_id_chart"/>
<field name="type_tax_use">sale</field>
<field name="name">0%</field>
<field name="amount_type">percent</field>
<field name="amount">0</field>
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a_2_122101'),
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a_2_122101'),
}),
]"/>
</record>

<record id="tax_ST2" model="account.tax.template">
<field name="description">ST2</field>
<field name="chart_template_id" ref="l10n_id_chart"/>
<field name="type_tax_use">sale</field>
<field name="name">Exempt</field>
<field name="amount_type">percent</field>
<field name="amount">0</field>
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a_2_122101'),
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a_2_122101'),
}),
]"/>
</record>

<record id="tax_PT0" model="account.tax.template">
<field name="description">PT0</field>
<field name="chart_template_id" ref="l10n_id_chart"/>
<field name="type_tax_use">purchase</field>
<field name="name">Exempt</field>
<field name="amount_type">percent</field>
<field name="amount">0</field>
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a_2_122102'),
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a_2_122102'),
}),
]"/>
</record>

<record id="tax_PT2" model="account.tax.template">
<field name="description">PT2</field>
<field name="chart_template_id" ref="l10n_id_chart"/>
<field name="type_tax_use">purchase</field>
<field name="name">0%</field>
<field name="amount_type">percent</field>
<field name="amount">0</field>
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a_2_122102'),
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'factor_percent': 100,
'repartition_type': 'base',
}),
(0,0, {
'factor_percent': 100,
'repartition_type': 'tax',
'account_id': ref('a_2_122102'),
}),
]"/>
</record>

</odoo>
Binary file not shown.

0 comments on commit 4b7162f

Please sign in to comment.
You can’t perform that action at this time.