Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
4607 Переглядів

How can I get custom fields of sale order line to MO? 

Thanks in advance. 

Аватар
Відмінити
Найкраща відповідь

Hi,

sale_id = self.procurement_group_id.mrp_production_ids.move_dest_ids.group_id.sale_id.id

by this you can get the sale order related to the particular manufacturing order, and from that by calling sale_id.order_line , we get all the order lines of the current sale order( sale_id). By looping ( for line in sale_id.order_line), we get each order and by applying certain condition ( to get the particular order line) and call line.field_name inside the loop for accessing the field value for the current order line.

Regards

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
бер. 21
2273
3
вер. 25
3103
2
серп. 25
1674
0
серп. 25
656
1
серп. 25
2789