تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
4582 أدوات العرض

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
مارس 21
2261
3
سبتمبر 25
3028
2
أغسطس 25
1627
0
أغسطس 25
609
1
أغسطس 25
2728