summaryrefslogtreecommitdiff
path: root/addons/l10n_th
diff options
context:
space:
mode:
authorLaurent Smet <las@odoo.com>2018-05-22 11:04:24 +0200
committerqdp-odoo <qdp@odoo.com>2018-05-23 15:43:39 +0200
commit7a31a92afa9a2ad280a6ec110fc9547e48b89466 (patch)
tree27da1d1466cc8b74116ed775050ee8ceb03d9c5c /addons/l10n_th
parent5766fac3886fedf9fdfba2307edbab3b033fb1b5 (diff)
[ADD] account, l10n_*: create transfer account based on prefix.
This commit changes the mechanism to get the transfer account. As the bank/cash accounts, the transfer account is now created automatically based on a prefix. -task: https://www.odoo.com/web#id=35857&action=333&active_id=967&model=project.task&view_type=form&menu_id=4720
Diffstat (limited to 'addons/l10n_th')
-rw-r--r--addons/l10n_th/data/l10n_th_chart_data.xml11
1 files changed, 1 insertions, 10 deletions
diff --git a/addons/l10n_th/data/l10n_th_chart_data.xml b/addons/l10n_th/data/l10n_th_chart_data.xml
index 94c094695f8..b919aabc83d 100644
--- a/addons/l10n_th/data/l10n_th_chart_data.xml
+++ b/addons/l10n_th/data/l10n_th_chart_data.xml
@@ -13,21 +13,12 @@
<!-- CHART OF Template -->
-<record id="transfer_account" model="account.account.template">
- <field name="name">Transfer Account</field>
- <field name="code">16</field>
- <field name="reconcile" eval="True"/>
- <field name="user_type_id" ref="account.data_account_type_current_assets"/>
-</record>
<record id="chart" model="account.chart.template">
<field name="name">Thailand - Chart of Accounts</field>
<field name="cash_account_code_prefix">1100</field>
<field name="bank_account_code_prefix">1110</field>
+ <field name="transfer_account_code_prefix">16</field>
<field name="currency_id" ref="base.THB"/>
- <field name="transfer_account_id" ref="transfer_account"/>
-</record>
-<record id="transfer_account" model="account.account.template">
- <field name="chart_template_id" ref="chart"/>
</record>
<!-- 1. ASSETS -->