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

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
2233
3
сент. 25
2957
2
авг. 25
1605
0
авг. 25
544
1
авг. 25
2671