20 lines
992 B
Diff
20 lines
992 B
Diff
diff -r 95ad0421e638 trytond/trytond/modules/stock/inventory.xml
|
|
--- a/trytond/trytond/modules/stock/inventory.xml Wed May 11 11:24:37 2016 +0200
|
|
+++ b/trytond/trytond/modules/stock/inventory.xml Mon May 30 15:19:18 2016 +0200
|
|
@@ -59,6 +59,15 @@
|
|
<field name="name">inventory_line_tree</field>
|
|
</record>
|
|
|
|
+ <record model="ir.rule.group" id="rule_group_inventory">
|
|
+ <field name="model" search="[('model', '=', 'stock.inventory')]"/>
|
|
+ <field name="global_p" eval="True"/>
|
|
+ </record>
|
|
+ <record model="ir.rule" id="rule_inventory">
|
|
+ <field name="domain" eval="[('company', 'in', Eval('user', {}).get('companies', []))]" pyson="1"/>
|
|
+ <field name="rule_group" ref="rule_group_inventory"/>
|
|
+ </record>
|
|
+
|
|
<record model="ir.model.access" id="access_inventory">
|
|
<field name="model" search="[('model', '=', 'stock.inventory')]"/>
|
|
<field name="perm_read" eval="False"/>
|