Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3411 Представления

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?

Аватар
Отменить
Лучший ответ

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
февр. 16
3586
1
мар. 15
4241
1
нояб. 23
2407
2
мая 23
7752
1
сент. 22
3869