I have Created Some Options In More Button display in The Delivery Order Form, But I need to hide some options depend on the User Group permission
The Code i written is,
<record id="action_activate_server" model="ir.actions.server">
<field name="name">Activate</field>
<field name="model_id" ref="model_stock_picking_out"/>
<field name="state">code</field>
<field name="code">self.activated(cr, uid, context.get('active_ids', []),context=context)</field>
<field name="groups_id" eval="[(4,ref('base.group_no_one'))]"/>
</record>
<record id="ir_open_activate_wizard" model="ir.values">
<field eval="'client_action_multi'" name="key2"/>
<field eval="'stock.picking.out'" name="model"/>
<field name="name">Activate</field>
<field eval="'ir.actions.server,%d'%action_activate_server" name="value"/>
<field name="groups_id" eval="[(4,ref('base.group_no_one'))]"/>
</record>
I have the same issue. Did you found the solution to this problem? Thanks in advance
Why we need server action check this: http://learnopenerp.blogspot.com/2020/01/odoo-server-action.html