Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3014 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
3
okt. 23
8993
1
sep. 23
3411
1
mei 23
2372
2
apr. 23
2923
1
mrt. 23
2311