跳至內容
選單
此問題已被標幟
1 回覆
3019 瀏覽次數

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
9023
1
9月 23
3417
1
5月 23
2393
2
4月 23
2958
1
3月 23
2333