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

Hi guys, 

I am  trying to filter the list of my many2one field

 

def _selection_function(self, cr, uid, context=None):

vals = []

<some condition >

record = id,name
vals.append(record)

return vals

fields.many2one('my.model', 'Field Name', selection=_selection_function )

But in the browser , still display all record of my model, 

アバター
破棄
著作者 最善の回答
アバター
破棄
関連投稿 返信 ビュー 活動
0
10月 20
3243
0
3月 15
3060
1
3月 15
6212
1
9月 23
1709
1
7月 19
6778