콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
4696 화면

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
2338
3
9월 25
3176
2
8월 25
1767
0
8월 25
735
1
8월 25
2930