Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3842 Visualizzazioni

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?

Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
feb 16
4084
1
mar 15
4642
1
nov 23
3125
2
mag 23
8485
1
set 22
4541