mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
24 lines
983 B
Diff
24 lines
983 B
Diff
diff -r 6c1f98f2f997 account.xml
|
|
--- a/tryton/modules/analytic_account/account.xml Sun Apr 07 19:50:02 2019 +0200
|
|
+++ b/tryton/modules/analytic_account/account.xml Fri Apr 12 21:23:20 2019 +0200
|
|
@@ -160,5 +160,20 @@
|
|
<field name="type">tree</field>
|
|
<field name="name">analytic_account_entry_tree</field>
|
|
</record>
|
|
+
|
|
+ <record model="ir.rule.group" id="rule_analytic_account">
|
|
+ <field name="name">User in company</field>
|
|
+ <field name="model"
|
|
+ search="[('model', '=', 'analytic_account.account')]"/>
|
|
+ <field name="global_p" eval="True"/>
|
|
+ </record>
|
|
+ <record model="ir.rule" id="rule_analytic_account1">
|
|
+ <field name="domain"
|
|
+ eval="[('company', 'in', Eval('user', {}).get('companies', []))]"
|
|
+ pyson="1"/>
|
|
+ <field name="rule_group" ref="rule_analytic_account"/>
|
|
+ </record>
|
|
+
|
|
+
|
|
</data>
|
|
</tryton>
|