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
คำถามนี้ถูกตั้งค่าสถานะ
4371
มุมมอง
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
|
2
มี.ค. 24
|
2469 | ||
|
|
0
เม.ย. 26
|
507 | ||
|
|
0
พ.ค. 26
|
5 | ||
|
|
2
เม.ย. 26
|
2527 | ||
|
|
0
มี.ค. 26
|
3474 |
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.