Odoo Help


This community 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.


Why OpenERP Fail with Postgres DB Filter ?

on 9/27/13, 8:28 AM 691 views

With OpenERP Framework search method issue.

ids = claim_obj.search(self.cr, self.uid, [('extract(month from cover_date)', '=', month)], context=context)

why extract(month from cover_date) function not evaluated ?

OpenERP Stop to perform this !!!


Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 10/9/13, 6:33 AM


The domain section is evaluated at ORM and it will not parse any postgresql keywords. What it does it evaluating the OpenERP fields on the left.

I see that you might have misunderstood domain meaning. [('extract(month from cover_date)', '=', month)] is the wrong expression.

The real meaning of the clause(domain) is the first element is field of openerp model, second one is operator and the third one is value you want to operate on.

Hope this helps. Thanks.

OpenERP Does not have smart feature on search. typical to perform complex feature. Where again we have to use traditional cr.execute....

on 10/11/13, 4:50 AM

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 9/27/13, 8:28 AM
Seen: 691 times
Last updated: 3/16/15, 8:10 AM