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

hi,

I want to add a domain for the computed field, when I try this I get all the data without filtering.

domain = self.env['hr.contract'].search_count(
[('notification_date', '=', today)]

where notification-date is computed.

Thank you in advance for any help 



Avatar
Descartar
Mejor respuesta

Hi,

Non stored computed fields are not searchable.

Make it stored computed field or try defining a search function for the field.

Thank you

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
oct 23
8986
1
sept 23
3411
1
may 23
2370
2
abr 23
2921
1
mar 23
2310