跳至內容
選單
此問題已被標幟
1 回覆
4894 瀏覽次數

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
5326
0
5月 21
2411
1
11月 17
12321
0
6月 15
4844
3
3月 15
5355