Skip to Content
Menu
This question has been flagged
1 Reply
5499 Views

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
Avatar
Discard
Best Answer

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/

Avatar
Discard
Author

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!

Related Posts Replies Views Activity
2
May 19
4278
1
Oct 24
275
2
Jul 24
442
2
Feb 24
6830
1
Oct 23
1597