Odoo Help


domain filter with a function ?

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


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


Techno-Functional Associate with 7+ 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

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


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