تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
4816 أدوات العرض

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

الصورة الرمزية
إهمال

thanks for your 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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أغسطس 17
14130
2
أبريل 15
15911
1
يوليو 25
1446
2
مارس 15
10847
1
يوليو 23
3085