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

I want to fetch sales order details into PoS order. I can access sales orders fields by calling the model via rpc calls and defining the fields that I want. All non-relational fields will be retrieved. But for any relational fields I specify, I only get an array of ids.
For example if I want to get all order_line objects, I only get array representing the line ids, thus I can't access any fields inside the order_line e.g. product or quantity. The dot notation will not work because I don't receive an object, rather only the id.
Version is odoo 14 PoS

아바타
취소

you browse the list of ids..

if list is so_ids then

self.env['sale.order'].browse(so_ids) and you will get a recordset.

관련 게시물 답글 화면 활동
2
3월 24
1341
1
8월 25
810
1
7월 25
1066
3
7월 25
3640
3
5월 25
1923