Odoo Help

Welcome!

This community 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.

0

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

By
Narayanamurthy
on 8/14/14, 7:06 AM 533 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>
        
        <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

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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