Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4461 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit

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.

Related Posts Odpovědi Zobrazení Aktivita
1
pro 21
9875
2
říj 20
12646
1
kvě 23
4100
2
srp 20
3054
0
lis 15
4873