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

Is it possible to create a window action to automatically apply a filter where origin is either 1 or 2? Something like:

{
            'name': 'Window',
            'type': 'ir.actions.act_window',
            'res_model': 'stock.picking',
            'target': 'current',
            'view_mode': 'tree,form',
            'domain': domain,
            'context': {'search_default_origin': ['1','2']
}

I'm trying to ultimately add a filter to a view so if a use creates a custom filter, I can replicate it on the next screen.

When I run the above context with the window action, Odoo seems to be searching for origin to contain the literal string 1,2.

I can use a domain but I'd like to use a filter so that the user can remove the filter if they choose.

アバター
破棄
関連投稿 返信 ビュー 活動
1
10月 22
3422
1
9月 22
3622
0
8月 22
3303
1
1月 24
2253
0
5月 22
1757