Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
3025 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
3
oct. 23
9059
1
sept. 23
3430
1
mai 23
2402
2
avr. 23
2971
1
mars 23
2350