Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3015 Prikazi

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
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
3
okt. 23
8994
1
sep. 23
3412
1
maj 23
2372
2
apr. 23
2924
1
mar. 23
2313