Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
811 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 8 15
4440
0
thg 11 25
34
2
thg 10 25
366
0
thg 10 25
554
0
thg 10 25
489