コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4591 ビュー

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

アバター
破棄
関連投稿 返信 ビュー 活動
0
3月 21
2269
3
9月 25
3069
2
8月 25
1659
0
8月 25
625
1
8月 25
2756