[FIX] stock: add missing group on server action

This action is called from a product.template view and should be
possible to be executed by any stock user

X-original-commit: 177d5e833989a40726eff040ec1cc25bdef48c06
This commit is contained in:
Martin Trigaux
2020-09-04 16:21:40 +00:00
parent 70aef550fe
commit beb308dad6
+1
View File
@@ -26,6 +26,7 @@
<record model="ir.actions.server" id="action_open_routes">
<field name="name">Routes</field>
<field name="model_id" ref="product.model_product_template"/>
<field name="groups_id" eval="[(4,ref('stock.group_stock_user'))]"/>
<field name="state">code</field>
<field name="code">
action = model.action_open_routes_diagram()