Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3 Replies
3223 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Jawaban Terbai

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
Buang
Jawaban Terbai

Did you try user access rights?


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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Sep 20
5154
1
Sep 16
4231
2
Feb 21
7532
1
Jun 20
11346
0
Jul 19
2608