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

I create a new group "testgroup" with only one member "testuser".

Now from the "new leave request" view I try to hide a field:

<field name="number_of_days_temp" class="oe_inline" groups="base.testgroup"/>

But it is not working.

What should I write instead of groups="base.testgroup"?

If I use a standard group like groups="base.group_hr_manager" everything is working fine. The problem is only with the groups I create.

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

Hi....

Syntax is not correct, you should specify groups in this manner "module.group_name"

For instance:

groups="base.group_hr_manager"  ==> means 'group_hr_manager' is present in module 'base'

like wise for "testgroup", it should be "your_module.testgroup" instead of "base.testgroup"

 

 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
remove groups_id from view แก้ไขแล้ว
1
ก.ค. 19
10481
0
ก.ย. 24
964
0
ก.พ. 24
5
0
ก.พ. 24
6
3
พ.ย. 23
14515