summaryrefslogtreecommitdiff
path: root/addons/l10n_be/data
diff options
context:
space:
mode:
authorqdp-odoo <qdp@odoo.com>2018-05-25 16:12:12 +0200
committerqdp-odoo <qdp@odoo.com>2018-05-29 13:52:12 +0200
commitd5359cfcf49e1796b95b52b2d618617c49ed847b (patch)
treec5400a2f9797047ee0f491f15362cc73fee94306 /addons/l10n_be/data
parent05c9854627d0974e2d61f0f35e44b8da3e3e6a00 (diff)
[FIX] l10n_be: fix installation of module
The previous commit https://github.com/odoo/odoo/commit/7a31a92afa9a2ad280a6ec110fc9547e48b89466 removed the liquidity transfer account template to replace it with a system of prefix like we already had for bank/cash accounts. However, that transfer account template was used as account_id in an account.reconcile.model.template object. To fix that, at the creation of chart template (using _update() of ir.model.data, because we need to have the module/xml_id reference) we create the account.account.template and its xml reference in ir_model_data table Was OPW https://www.odoo.com/web?#id=1851523&action=333&active_id=1278&model=project.task&view_type=form&menu_id=
Diffstat (limited to 'addons/l10n_be/data')
-rw-r--r--addons/l10n_be/data/account_reconcile_model_template.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/l10n_be/data/account_reconcile_model_template.xml b/addons/l10n_be/data/account_reconcile_model_template.xml
index 192f6aeac99..a79759f9f41 100644
--- a/addons/l10n_be/data/account_reconcile_model_template.xml
+++ b/addons/l10n_be/data/account_reconcile_model_template.xml
@@ -27,8 +27,8 @@
</record>
<record id="virements_internes_template" model="account.reconcile.model.template">
<field name="chart_template_id" ref="l10nbe_chart_template"/>
+ <field name="account_id" search="[('code', '=like', obj().env.ref('l10n_be.l10nbe_chart_template').transfer_account_code_prefix + '%')]"/>
<field name="name">Virements internes</field>
- <field name="account_id" ref="trans"/>
<field name="amount_type">percentage</field>
<field name="amount">100</field>
<field name="label">Virements internes</field>