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

We have created a new model (v8) with a field 'sale_order_id' (Many2one).

We want a function be run with an @api.depends('sale_order_id.picking_ids.state') on this new model.


That launches an error which says that no _fnct_search is defined on 'picking_ids' (from sale.order) : 'Field picking_ids can not be searched : non-stored function field without fnct_search'.


Is there a solution for this?


Many thanks!

アバター
破棄
最善の回答

add

store=True

or

search="_a_search_function"

to the corresponding field. that's a solution.

アバター
破棄
関連投稿 返信 ビュー 活動
2
3月 24
5333
0
5月 21
2422
1
11月 17
12328
0
6月 15
4857
3
3月 15
5370