跳至内容
菜单
此问题已终结
5 回复
7523 查看

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  <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
1492
0
9月 15
3510
2
3月 15
6553
1
3月 15
4177
2
3月 15
11559