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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
2806
Tampilan
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
2
Mar 24
|
1203 | ||
|
3
Jul 25
|
2166 | ||
|
0
Jul 25
|
280 | ||
Import/Export Excel files
Diselesaikan
|
|
3
Mei 25
|
1149 | |
|
1
Jul 25
|
711 |
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.