def default_get(self, fields):
        """
        To get default values for the object.
        @param self: The object pointer.
        @param fields: List of fields for which we want default values
        @return: A dictionary which of fields with values.
        """
        if self._context is None:
            self._context = {}
        res = super(QuickRoomReservation, self).default_get(fields)
        if self._context:
            keys = self._context.keys()
            if 'date' in keys:
                res.update({'check_in': self._context['date']})
            if 'room_id' in keys:
                roomid = self._context['room_id']
                res.update({'room_id': int(roomid)})
        return res
def default_get ( self , fields ) : if self . _context is None : self . _context = { } res = super ( QuickRoomReservation , self ) . default_get ( fields ) if self . _context : keys = self . _context . keys ( ) if 'date' in keys : res . update ( { 'check_in' : self . _context [ 'date' ] } ) if 'room_id' in keys : roomid = self . _context [ 'room_id' ] res . update ( { 'room_id' : int ( roomid ) } ) return res
To get default values for the object.
        @param self: The object pointer.
        @param fields: List of fields for which we want default values
        @return: A dictionary which of fields with values.