Se rendre au contenu
Menu
Cette question a été signalée
3 Réponses
3331 Vues

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 

Avatar
Ignorer
Meilleure réponse

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

Avatar
Ignorer
Meilleure réponse

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

Avatar
Ignorer
Meilleure réponse

Did you try user access rights?


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

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
sept. 20
5339
1
sept. 16
4327
2
févr. 21
7729
1
juin 20
11561
0
juil. 19
2724