跳至內容
選單
此問題已被標幟
1 回覆
3775 瀏覽次數

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"

 

 

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
7月 19
10422
0
9月 24
927
0
2月 24
5
0
2月 24
6
3
11月 23
14421