Skip to Content
Menú
This question has been flagged
5 Respostes
7661 Vistes

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

Avatar
Descartar
Best Answer

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}" ...

Avatar
Descartar
Best Answer

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.

Avatar
Descartar
Best Answer

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

Avatar
Descartar
Best Answer

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

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de maig 24
1607
0
de set. 15
3638
2
de març 15
6677
1
de març 15
4273
2
de març 15
11674