Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
4437 Tampilan

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!

Avatar
Buang
Jawaban Terbai

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">


Avatar
Buang

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.

Post Terkait Replies Tampilan Aktivitas
1
Des 21
9833
2
Okt 20
12633
1
Mei 23
4065
2
Agu 20
3027
0
Nov 15
4860