Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
7763 มุมมอง

Hi,

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

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).

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

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
4324
5
ก.ย. 20
12873
using function in domain filter แก้ไขแล้ว
4
พ.ค. 20
74150
1
มี.ค. 15
5353
2
มี.ค. 15
7602