Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
5 Risposte
7647 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Risposta migliore

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
Abbandona
Risposta migliore

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

Avatar
Abbandona
Risposta migliore

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mag 24
1598
0
set 15
3628
2
mar 15
6668
1
mar 15
4267
2
mar 15
11661