Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
8757 Widoki

I am using odoo 10 enterprise version and i created a many2one field in which autocomplete is default behavior. I want that "Create and edit" option only for administrator.

What is the possible way to do this using odoo studio OR debug mode ?

Awatar
Odrzuć
Najlepsza odpowiedź

Hi Ahsan,

We have develop access-rights for the user to allow user to "Create and Edit" or not.

Please check below link:

https://youtu.be/9Dqf6LkVMj4


Thanks

Awatar
Odrzuć
Autor

Thanks Sir for your time and video with detailed description, but i am unable to see "Can Access" checkbox in my user setting also i think you added domain filter on each many2one field. Can you share that domain so that it become more clear

Najlepsza odpowiedź

A simple way is to add in field attributes in xml view: 

<field name="myname" ... options="{'no_create_edit': True}" ... />

no_quick_create  to remove create...
no_create_edit  to remove create and edit...

Another way is to create a user group to define permissions and then add groups="mygroup" in attrs field.

Awatar
Odrzuć
Autor

I think "no_quick_create" would hide that option from everyone . I want to show that option only to administrator

Autor

and i don't want to hide field i think second option would hide field from other users which are not in allowed group.

Powiązane posty Odpowiedzi Widoki Czynność
0
cze 18
2544
0
maj 18
3248
2
mar 24
1599
0
sie 22
2316
1
lip 22
20005