跳至内容
菜单
此问题已终结
1 回复
3190 查看

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?

形象
丢弃
最佳答案

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
3407
1
3月 15
4071
1
11月 23
2259
2
5月 23
7460
1
9月 22
3717