Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
4587 Vues

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

Thanks in advance. 

Avatar
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
0
mars 21
2266
3
sept. 25
3068
2
août 25
1657
0
août 25
624
1
août 25
2752