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?
Această întrebare a fost marcată
1
Răspunde
5083
Vizualizări
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
Îți place discuția? Nu doar citi, alătură-te!
Creează-ți un cont astăzi pentru a beneficia de funcții exclusive și a interacționa cu minunata noastră comunitate!
Înscrie-te| Postări similare | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
|
1
feb. 16
|
5265 | ||
|
|
1
mar. 15
|
5703 | ||
|
|
1
nov. 23
|
4545 | ||
|
Can't create view (model not found)
Rezolvat
|
|
2
mai 23
|
10160 | |
|
|
1
sept. 22
|
6051 |