コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
8922 ビュー

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>
アバター
破棄
関連投稿 返信 ビュー 活動
1
8月 15
5977
5
5月 24
25211
5
9月 22
11689
1
2月 22
26155
1
4月 24
13764