Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
8955 มุมมอง

Hello to everybody,

I have a field, in a custom module, like: 'user_ids': fields.many2one('res.users', 'User')

I need this field contains only users belonging to a certain group, for example test, but I don't know how set the domain for this kind of relation.

anybody could help me? Thanks in advance

Simone

อวตาร
ละทิ้ง

in action part do like this <filed name="domain">'id','=',uid</field>

ผู้เขียน

Thanks for the anserws, i have tried but it doesn't work properly. At the moment i am looking for another way to do that.

คำตอบที่ดีที่สุด

On OpenERP 7.0 (and perhaps earlier) in the ir.actions.act_window record, you want a line similar to:

<field name="domain">[('id','=',uid)]</field>
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 15
5989
5
พ.ค. 24
25234
5
ก.ย. 22
11708
1
ก.พ. 22
26178
1
เม.ย. 24
13797