跳至内容
菜单
此问题已终结
1 回复
3007 查看

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 



形象
丢弃
最佳答案

Hi,

Non stored computed fields are not searchable.

Make it stored computed field or try defining a search function for the field.

Thank you

形象
丢弃
相关帖文 回复 查看 活动
3
10月 23
8985
1
9月 23
3408
1
5月 23
2369
2
4月 23
2921
1
3月 23
2309