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.

2

How to write not in group ?

By
Benjamin Bachmann
on 5/27/15, 5:16 AM 532 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>

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: 5/27/15, 5:16 AM
Seen: 532 times
Last updated: 6/23/15, 9:48 AM