[FIX] account: avoid error group billing not found

Set the use in 2 steps to avoid chicken & egg problem where the user uses
reference to a group not defined yet.
This commit is contained in:
Martin Trigaux
2017-01-20 12:56:51 +01:00
parent 2f1d3ad712
commit c920444e56
+5 -1
View File
@@ -5,10 +5,14 @@
<record id="group_account_invoice" model="res.groups">
<field name="name">Billing</field>
<field name="category_id" ref="base.module_category_accounting_and_finance"/>
<field name="users" eval="[(4, ref('base.user_root'))]"/>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
</record>
<!-- 2 steps to avoid making reference to xml id not defined yet -->
<record id="group_account_invoice" model="res.groups">
<field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>
<record id="group_account_user" model="res.groups">
<field name="name">Accountant</field>
<field name="category_id" ref="base.module_category_accounting_and_finance"/>