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.


domain filter with a function ?

on 11/27/14, 5:43 AM 1,219 views


how can i apply the result of a function in filter's domain ?



| 5 4 7
Bengaluru, India

Techno-Functional Associate with 6+ years of experience in Odoo (formerly known as OpenERP).

On 11/28/14, 3:01 AM

If the functional field value is saved to database, then you can use it to set domain, else you cannot...

Hi deep, i have created a filter like the following: and agenda_emp_liee is a 'agenda_emp_liee': fields.function(itk_facturation_fct_get_employee_liee,type='many2many',string=U'Employé lié',store=False,relation="hr.employee"), but it dosen't work

on 11/28/14, 3:32 AM

When you say filter, did you mean the filter in the Search bar? Deep actually said the opposite, you need to have the function stored in the database to be used in the a search. Also, the field need to be included in the view (although it can be invisible).

on 11/28/14, 4:33 AM

You also might want to check the answer to this question: https://www.odoo.com/forum/help-1/question/how-can-i-use-a-field-function-in-the-domain-filter-137

on 11/28/14, 5:03 AM

@John Doe, Yup I too meant the same, Stored functional field can be used in domain filter..... typo error :)

on 11/28/14, 5:36 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

1 follower(s)


Asked: 11/27/14, 5:43 AM
Seen: 1219 times
Last updated: 3/16/15, 8:10 AM