Hi, i wanna assign products in my db to idProduct with this line :
idProduct = product_product.search(['|', ('product_tmpl_id.ing', '=', True), ('product_tmpl_id.last_synchro_ing', '<', date)], order='id')
But the sample in bold doesn't work.
I tested with one product whom don't respect this condition ('product_tmpl_id.last_synchro_ing', '<', date) but the idProduct still includes it:
The product I tested :
date = 2016-03-02 13:10:53.017044
idProd.last_synchro_ing = 2016-03-09
An idea ? Thanks in advance.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 3/9/16, 8:23 AM|
|Seen: 358 times|
|Last updated: 3/11/16, 4:08 AM|