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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
1
Répondre
3095
Vues
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
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
1
févr. 16
|
3308 | ||
|
1
mars 15
|
3968 | ||
|
1
nov. 23
|
2130 | ||
|
2
mai 23
|
7267 | ||
|
1
sept. 22
|
3554 |