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

When the product is selected from the products list, the option to create and edit appears at the end of the list. How can I restrict this option for certain users?

Thanks for the support

アバター
破棄
最善の回答

Change the view and add option no_create and no_edit  on product_id field like

<field name="product_id" options="{'no_create': True, 'no_edit': True}" ...

アバター
破棄
最善の回答

Dear Hugo Jaramillo,

You can use below code.

name="product_id" position="attributes">
name="options">{'no_create':True,'no_open':True}

Regards


Global Creative Concepts Tech Co Ltd.

アバター
破棄
最善の回答

You can use this on Odoo13:
https://apps.odoo.com/apps/modules/browse?author=Lima Bersaudara

アバター
破棄
最善の回答

You can use  <field name="product_id" options="{'no_create': True, 'no_edit': True}" />

'no create': True and 'no_edit': True will not allow you to create product from one2many

アバター
破棄
最善の回答

Maybe you can create an inherited view for these users, as per the answer from Yannick Vaucher to this question:  https://www.odoo.com/forum/help-1/question/how-to-hide-the-create-button-dynamical-tree-view-in-openerp-42661

アバター
破棄
関連投稿 返信 ビュー 活動
1
5月 24
1548
0
9月 15
3583
2
3月 15
6606
1
3月 15
4214
2
3月 15
11594