コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
3195 ビュー

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 

アバター
破棄
最善の回答

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

アバター
破棄
最善の回答

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

アバター
破棄
最善の回答

Did you try user access rights?


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

アバター
破棄
関連投稿 返信 ビュー 活動
1
9月 20
5147
1
9月 16
4220
2
2月 21
7530
1
6月 20
11340
0
7月 19
2608