تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
4442 أدوات العرض

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
ديسمبر 21
9861
2
أكتوبر 20
12641
1
مايو 23
4087
2
أغسطس 20
3040
0
نوفمبر 15
4863