Skip to Content
मेन्यू
This question has been flagged
2 Replies
4520 Views

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

Thanks in advance. 

Avatar
Discard
Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
0
मार्च 21
2194
3
सित॰ 25
2922
2
अग॰ 25
1587
0
अग॰ 25
526
1
अग॰ 25
2641