Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4935 Lượt xem

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!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

add

store=True

or

search="_a_search_function"

to the corresponding field. that's a solution.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 24
5352
0
thg 5 21
2470
1
thg 11 17
12355
0
thg 6 15
4902
3
thg 3 15
5395