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

Hi.


I'm using Odoo 11 and the question is very simple. When I do a XML_RPC::CallMethod, exists the possibility to do a filter or pass the condition (where) to get the data more efficient?

For example, I have a table with 2000 récords and only want the records which name begins with 'a' or that create_date between two dates.

Thanks

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Ferran:

If I understand your question correctly you are asking whether you can specify a condition while querying records using the XML-RPC api.

Yes. You can specify a valid domain in the search. Here's an example from the documentation that will help clarify things.

https://www.odoo.com/documentation/11.0/webservices/odoo.html#list-records

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 22
5169
4
thg 12 19
19048
2
thg 5 18
6050
3
thg 7 25
2975
1
thg 10 24
2173