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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
1
回覆
3410
瀏覽次數
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
相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
---|---|---|---|---|
|
1
2月 16
|
3586 | ||
|
1
3月 15
|
4241 | ||
|
1
11月 23
|
2407 | ||
|
2
5月 23
|
7752 | ||
|
1
9月 22
|
3869 |