Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
6201 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Autor

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!

Publicaciones relacionadas Respuestas Vistas Actividad
2
may 19
4853
1
ago 25
3551
2
mar 25
6861
1
oct 24
2398
2
jul 24
2131