Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
3472 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
helmik. 16
3639
1
maalisk. 15
4280
1
marrask. 23
2464
2
toukok. 23
7862
1
syysk. 22
3931