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

So I am wondering, does the search method parse the context argument into the where clause in any way? So if context held 'account_id':5 does object.search(....,context) build something like "account_id = 5" into the resulting where clause?

Or do I need to directly call the important key value pair from context into the standard args tuple with operator?

アバター
破棄
最善の回答

The default behavior doesn't take a search domain from the context, although the context does have an impact on a few things such as excluding inactive records, the handling of related fields, etc...

Some models may modify the domain based on the context, but it isn't the standard behavior.

If you need to search for a specific domain, put it in the domain args.

アバター
破棄
関連投稿 返信 ビュー 活動
0
12月 24
9352
3
9月 24
21427
5
12月 24
52720
4
7月 24
10413
7
8月 23
10796