Skip to Content
Menu
This question has been flagged
1 Reply
2283 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
3
Oct 23
5979
1
Sep 23
1968
1
May 23
1004
2
Apr 23
1378
1
Mar 23
996