Skip to Content
Menu
This question has been flagged
2 Replies
4810 Views

I want to fetch the list of products to my java application using xmlRpc. and i want to filter them by __last_update field. I tried this but still all the products are fetched.

Object[] ids = (Object[]) xmlRpcClient.execute("execute_kw",
asList(db, uid, password, "product_product", "search",
asList(asList(asList("__last_update", ">", "20200823T14:08:55")))));

So what is the best way to acheive my goal?
Thank you

Avatar
Discard

thanks for your answer, 

Best Answer

"__last_update" field is a compute field and it does not store in database hence you cannot use this field to filter any records and is mostly used to check the concurrency.

Better to use "write_date" instead of this.

Avatar
Discard
Related Posts Replies Views Activity
2
Aug 17
14114
2
Apr 15
15900
1
Jul 25
1430
2
Mar 15
10837
1
Jul 23
3077