Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3010 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
3
Okt 23
8988
1
Sep 23
3411
1
Mei 23
2371
2
Apr 23
2923
1
Mar 23
2310