Skip to Content
Menu
This question has been flagged
1 Odpoveď
3009 Zobrazenia

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
Zrušiť
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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
3
okt 23
8986
1
sep 23
3411
1
máj 23
2370
2
apr 23
2921
1
mar 23
2310