Skip to Content
Menu
This question has been flagged
1 Atsakyti
3476 Rodiniai

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?

Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
vas. 16
3642
1
kov. 15
4292
1
lapkr. 23
2472
2
geg. 23
7871
1
rugs. 22
3940