Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
13182 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor Nejlepší odpověď

How can I identify all groups available in Odoo?

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
srp 25
792
0
čvc 25
522
1
čvc 25
748
0
čvn 25
659
1
kvě 25
1308