Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
4562 Weergaven

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

Thanks in advance. 

Avatar
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
mrt. 21
2244
3
sep. 25
2986
2
aug. 25
1611
0
aug. 25
567
1
aug. 25
2686