Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
5 ตอบกลับ
7520 มุมมอง

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 this on Odoo13:
https://apps.odoo.com/apps/modules/browse?author=Lima Bersaudara

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ค. 24
1491
0
ก.ย. 15
3503
2
มี.ค. 15
6553
1
มี.ค. 15
4171
2
มี.ค. 15
11558