Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
813 Ansichten

Hello,


I am new to Odoo, not familiar with python but well versed with JSON and web api's. I'm using Odoo online just to learn. 


The use case is that I have orders in the Inventory -> Pack Zone which I need to fetch and then display the sales order info with the products included in the order. Doing this using normal JSON and .Net, is quite inefficient. The current process I have does this:

  1. Query the " stock.picking" entity where state = "assigned"
  2. For each item in step [1], make a web request to get the sales order info (Id, price and other metadata), to "sale.order.line" where "order_id" = the sales order number from step [1].
  3. Then for each product in step [1], I need to make web requests to fetch the product info.


In OData there's an expand clause to expand to related entities. Is this something that Odoo's JSONPRC has or supports? Using [Claude/ChatGPT] for ideas, it mentioned the "read_group" method but when running it from Postman, I get "Method not available read_group"


Thanks community.

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Aug. 15
4440
0
Nov. 25
34
2
Okt. 25
366
0
Okt. 25
554
0
Okt. 25
489