Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4947 มุมมอง

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
understanding Odoo Frame work แก้ไขแล้ว
2
มี.ค. 24
5369
0
พ.ค. 21
2486
1
พ.ย. 17
12372
0
มิ.ย. 15
4924
3
มี.ค. 15
5414