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

Odoo 16 


How can I use the groups parameter properly in xpath view? I want to add a no_creare parameter to the certain group via xpath. 


I tried to add groups_id parameter as if in previous versions of odoo, but it does not work here I have only an error which says I should use the groups parameter, but it does not work either. 


I tried to add this inside xpath and inside this parameter, but neither option seems to be working, either everyone or no-one has this xpath applied. 


Does anyone know how I can do this?

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

Hi,


You can use the following code to add a no_creare parameter to the certain group via xpath.


<xpath expr="//your/xpath/expression" position="attributes">

    <attribute name="groups">your_module.group_no_create</attribute>

</xpath>


Hope it helps

อวตาร
ละทิ้ง
ผู้เขียน

Thanks for your answer

I tried to use your approach

<attribute name="groups">base.group_erp_manager_no_create</attribute>

But I receive only an error which says that this group "base.group_erp_manager_no_create" does not exist

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.พ. 24
6
2
ก.ค. 17
10359
0
มี.ค. 15
4658
2
พ.ค. 24
2264
3
เม.ย. 23
11751