Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 3/9/16, 8:23 AM|
|Seen: 669 times|
|Last updated: 3/11/16, 4:08 AM|