Odoo Help


Using "ir.actions.server" i Have Create a server Action, i need to restrict depend on User Group Permission

on 8/14/14, 7:06 AM 858 views

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 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'))]"/>


I have the same issue. Did you found the solution to this problem? Thanks in advance

Noel Jesús Rivero
on 8/19/16, 3:30 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 8/14/14, 7:06 AM
Seen: 858 times
Last updated: 8/19/16, 3:29 PM