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
- Бухоблік
- Склад
- PoS
- Project
- MRP
Це запитання позначене
2994
Переглядів
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
РеєстраціяRelated Posts | Відповіді | Переглядів | Дія | |
---|---|---|---|---|
|
2
бер. 24
|
1341 | ||
|
1
серп. 25
|
810 | ||
|
1
лип. 25
|
1066 | ||
|
3
лип. 25
|
3636 | ||
Import/Export Excel files
Вирішено
|
|
3
трав. 25
|
1919 |
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.