Odoo Help

3

How to write not in group ?

By
Benjamin Bachmann
on 5/27/15, 5:16 AM 844 views

Hi,

I want to have 2 different input fields, dependent if a user is in a group or not. The one if a user is in the group works but the on if the user is not not. I also tried <t groups="not myaddon.group_tag">


<t groups="myaddon.group_tag">
    <field name="category_id"
           widget="many2many_tags"
           placeholder="Tags..."/>
</t>
<t groups="! myaddon.group_tag">
    <field name="category_id"
           widget="many2many_tags"
           options="{'no_create': True}"
           placeholder="Tags not..."/>
</t>

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.

Register

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)

Stats

Asked: 5/27/15, 5:16 AM
Seen: 844 times
Last updated: 5/24/17, 7:19 PM