| 
						
						
							
								
							
						
						
					 | 
					@ -650,9 +650,12 @@ class RoomBooking(models.Model): | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    def get_details(self): | 
					 | 
					 | 
					    def get_details(self): | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        """ Returns different counts for displaying in dashboard""" | 
					 | 
					 | 
					        """ Returns different counts for displaying in dashboard""" | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        today = datetime.today() | 
					 | 
					 | 
					        today = datetime.today() | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        tz_name = False | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        if self.env.user.tz: | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            tz_name = self.env.user.tz | 
					 | 
					 | 
					            tz_name = self.env.user.tz | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        today_utc = pytz.timezone('UTC').localize(today, | 
					 | 
					 | 
					        today_utc = pytz.timezone('UTC').localize(today, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                                                  is_dst=False) | 
					 | 
					 | 
					                                                  is_dst=False) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        if tz_name: | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            context_today = today_utc.astimezone(pytz.timezone(tz_name)) | 
					 | 
					 | 
					            context_today = today_utc.astimezone(pytz.timezone(tz_name)) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            total_room = self.env['hotel.room'].search_count([]) | 
					 | 
					 | 
					            total_room = self.env['hotel.room'].search_count([]) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            check_in = self.env['room.booking'].search_count( | 
					 | 
					 | 
					            check_in = self.env['room.booking'].search_count( | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -736,3 +739,5 @@ class RoomBooking(models.Model): | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                'currency_symbol': self.env.user.company_id.currency_id.symbol, | 
					 | 
					 | 
					                'currency_symbol': self.env.user.company_id.currency_id.symbol, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                'currency_position': self.env.user.company_id.currency_id.position | 
					 | 
					 | 
					                'currency_position': self.env.user.company_id.currency_id.position | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        else: | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            raise ValidationError(_("Please Enter time zone in user settings.")) | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
					 | 
					
  |