Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
3 Antworten
13186 Ansichten

Hi,

Working on Odoo13, when creating a new contact (individual) in debug mode there is a field where it let you chose direction type (private, delivery...).

How can grant permission to a specific group of users to this field?

Avatar
Verwerfen
Beste Antwort

Hi, Kiko Rivera


groups="base.group_no_one"  is used for showing fields  only in debug mode
 
<field name="type" groups="base.group_no_one" attrs="{'invisible': [('is_company','=', True)], 'readonly': [('user_ids', '!=', [])]}"/>

If you want to  give access to any other groups assign multiple groups for that field ,

<field name="type" groups="base.group_no_one,base.user_admin" attrs="{'invisible': [('is_company','=', True)], 'readonly': [('user_ids', '!=', [])]}"/>
Avatar
Verwerfen
Autor Beste Antwort

How can I identify all groups available in Odoo?

Avatar
Verwerfen
Beste Antwort

Hello Kiko Rivera,

Yes, you can very well do this by assigning group to that particular field .

for reference, please consider this ...

<field name ="test" groups="group_name"/>

you can also define multiple group using comma
I hope you will understand this
Thank you....

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Aug. 25
794
0
Juli 25
522
1
Juli 25
750
0
Juni 25
659
1
Mai 25
1310