跳至内容
菜单
此问题已终结
1 回复
2496 查看
Error while validating view near:

                    
                    

Unsearchable field 'expected_date' in path 'expected_date' in domain of  ([('expected_date', '>=', context_today().strftime('%Y-%m-%d 00:00:00')),                             ('expected_date', '<=',context_today().strftime('%Y-%m-%d 23:23:59'))]))

View error context:
{'file': '/home/aneesh/odoo15/custom/hotel_room_management/views/hotel_accomodation_views.xml',
 'line': 9,
 'name': 'accomodation search',
 'view': ir.ui.view(881,),
 'view.model': 'hotel_room.accomodation',
 'view.parent': ir.ui.view(),
 'xmlid': 'accomodation_search'}


形象
丢弃

Plz share the code developed for adding this filter

最佳答案

Make sure field 'expected_date' is stored field. It is likely computed field.

形象
丢弃