Skip to Content
Menú
This question has been flagged
1 Respondre
3017 Vistes

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

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
Related Posts Respostes Vistes Activitat
3
d’oct. 23
8999
1
de set. 23
3412
1
de maig 23
2372
2
d’abr. 23
2927
1
de març 23
2315