I have a model that shows a form view but whenever I click that item a new record will be created instead of showing the earlier created record. I have tried adding this:
{'form_view_initial_mode': 'view', 'default_res_id': 'hotel.getdates,get_first_record_id()'}
but didn't work... This is my XML: