I managed to popup a calendar wizard on a form after pressing a button.
However the wizard cant close after it is popup.
I keep clicking the Close button but it is not working then I pressed F12 on chrome and saw this error.
Uncaught TypeError: Cannot read property ‘validate’ of null
May I know if anyone solved this error before? Thank you
Below are part of my code:
class RoomBooking(Workflow, metaclass=PoolMeta): __name__ = 'room.booking' @classmethod @ModelView.button_action('room_booking.room.schedule.view') def view_schedule_btn(cls, bookings): pass class ViewSchedule(Wizard): 'View Schedule Wizard' __name__ = 'room.schedule.view' start = StateView( 'room.booking', 'room_booking.room_calendar', [ Button('Close', 'end', 'tryton-cancel'), ])
<record model="ir.ui.view" id="room_booking.room_calendar"> <field name="model">room.booking</field> <field name="type">calendar</field> <field name="name">room_calendar_view</field> </record>