Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
5 Vastaukset
7530 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Paras vastaus

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
Hylkää
Paras vastaus

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
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
toukok. 24
1494
0
syysk. 15
3519
2
maalisk. 15
6556
1
maalisk. 15
4178
2
maalisk. 15
11559