Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
5 Antwoorden
7550 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Beste antwoord

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
Annuleer
Beste antwoord

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
mei 24
1517
0
sep. 15
3545
2
mrt. 15
6577
1
mrt. 15
4185
2
mrt. 15
11569