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
لقد تم الإبلاغ عن هذا السؤال
4360
أدوات العرض
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
|
2
مارس 24
|
2461 | ||
|
|
0
أبريل 26
|
506 | ||
|
|
0
مايو 26
|
5 | ||
|
|
2
أبريل 26
|
2507 | ||
|
|
0
مارس 26
|
3444 |
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.