콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
6237 화면

Hi all,

in my custom model I have a m2m

qualification = fields.Many2many(comodel_name='hr.qualification'domain=[])
which is


class Qualification(models.Model):
_name = "hr.qualification"
_order = "name"

name = fields.Char(string="Qualifikation")
date_begin = fields.Date(string="Datum Erwerb")
date_duedate = fields.Date(string="Datum Ablauf")
qual_type = fields.Many2one("hr.qualification_category")

Now in Search Box in Kanban view I can a custom filter on qualification by Filters->Add Custom Filter,
which in fact searches hr.qualification.name. However, is there any way to have fields date_begin resp. date_duedate
available as searcheable field in Custom Filter?

Thanks and regards!
Matthias
아바타
취소
베스트 답변

Hi,

you can click on advanced search -> select field name -> filter, another option is you can add a search view for the related model by defining each filter on fields. Please have a look at these references.

1. https://www.odoo.com/documentation/10.0/reference/views.html#search

2. https://www.odoo.yenthevg.com/adding-filters-existing-search-views/

3. https://www.odoo.yenthevg.com/adding-fields-quick-search-views/

아바타
취소
작성자

Hi,

thx for that, however thats exaxtly zur point: In advanced search -> select field name -> filter fields date_begin, date_duedate, qual_type simply do not appear, so User can not dynamically Filter in these fields...

Regards!

관련 게시물 답글 화면 활동
2
5월 19
4859
1
8월 25
3603
2
3월 25
6875
1
10월 24
2857
2
7월 24
2186