Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
2500 Ansichten
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'}


Avatar
Verwerfen

Plz share the code developed for adding this filter

Beste Antwort

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

Avatar
Verwerfen