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

Hello 

I am in a the middle of confusion here. I am trying to prevent let's say user1 from creating a new product/ partner 

I want to hide the links for this option when the user wants to input a product/partner name in the sales application 

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

yes its possible to remove create and edit option from the Many2one fields, you can set it like this,

<field name="user_id" options="{'no_create': True, 'no_edit': True}"/>

This will remove create edit option from M2O fields.

Same can be achieved from the odoo studio also if you are using enterprise.


See :- How to Remove Create and Edit Option From Many2one Field Odoo


Thanks

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,
If you are trying to prevent the user from creating a product/partner you can do it from the UI itself. For that go to settings->Users& Companies -> Users
Here you can see the users which created or already exist. And then select the respective user to whom you need to prevent the create access and then choose the corresponding access right and then disable the field 'Create Access' if the access right is already given otherwise you can create new access right for the user for that go to
Settings->Technical->Access Rights and create a new access right. For more clarification, you could refer to

https://www.cybrosys.com/blog/manage-the-users-and-access-right-in-odoo-14

Regards

Awatar
Odrzuć
Najlepsza odpowiedź

Did you try user access rights?


If No, go to users & companies and modify the user access rights.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
wrz 20
5288
1
wrz 16
4313
2
lut 21
7662
1
cze 20
11498
0
lip 19
2670