Odoo Help


Doubt in attributes to give group privilege to a button in purchase requisition ?

on 10/14/14, 7:46 AM 929 views

In purchase requisition model, I have created an extra button.I want to give group privilege to that button. So that I gave

<button name="tender_techteam_approval" states="manager_approval" string="TechTeam Approval"  type="object" class="oe_highlight" groups="material.group_tech_team"/>

But its not working. Then I tried with attrribute like below,again it doesn't working.

attrs="{'invisib le': [('user_id.groups_id.name':'group_tech_team')]}"

user_id = many2one field of res.users

groups_id = many2many field  of res.groups and name is a field in res.groups. How can I work this below attribute or any other option to give privilege to that button ?

Make sure first you assigned group (material.group_tech_team) to user ?? in my case it is working.

Nirav Jani
on 10/14/14, 7:55 AM

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

2 follower(s)


Asked: 10/14/14, 7:46 AM
Seen: 929 times
Last updated: 3/16/15, 8:10 AM