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

In the Sales Order Tree View, I want to see the status of its related picking. However, this state is represented by the "state" field of "stock.picking" model while Sales Order Tree View works with "sale.order" model. How can I call  the "state" field from "stock.picking" to  Sales Order View?

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

Hi,

The field named picking_ids in the model sale.order will give the ids of the related stock pickings of the sale.  This is a Many2many field and it may have multiple values in it.

Based on this you can assign the state of the picking ids to a new field and display it in tree view

Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 16
3597
1
thg 3 15
4257
1
thg 11 23
2430
2
thg 5 23
7775
1
thg 9 22
3886