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

Hi

I have the following requirement: Let's say I have a group of users 'A' and a field 'foo', if a user belongs to group 'A' then 'foo' should be equal to zero, any other user not belonging to group 'A' should see the real 'foo' value.


Does anyone know how to achieve this?


Thanks in advance!

頭像
捨棄
最佳答案

Rather than change the value must display or not display depending on the group

Like this

field name="foo" attrs="{'invisible':[('user','=',"A")]}" name="foo">


頭像
捨棄

So I guess the value 'foo' is involved in a calculation. We must therefore change the calculation according to the group. please, be more specific.

相關帖文 回覆 瀏覽次數 活動
1
12月 21
10492
2
10月 20
13230
1
5月 23
4702
2
8月 20
3459
0
11月 15
5364