Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
3026 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
3
out. 23
9060
1
set. 23
3430
1
mai. 23
2402
2
abr. 23
2971
1
mar. 23
2351