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?
Pertanyaan ini telah diberikan tanda
1
Balas
5090
Tampilan
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
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
|
1
Feb 16
|
5271 | ||
|
|
1
Mar 15
|
5707 | ||
|
|
1
Nov 23
|
4546 | ||
|
Can't create view (model not found)
Diselesaikan
|
|
2
Mei 23
|
10170 | |
|
|
1
Sep 22
|
6052 |