You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							43 lines
						
					
					
						
							1.9 KiB
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							43 lines
						
					
					
						
							1.9 KiB
						
					
					
				
								# -*- coding: utf-8 -*-
							 | 
						|
								#############################################################################
							 | 
						|
								#
							 | 
						|
								#    Cybrosys Technologies Pvt. Ltd.
							 | 
						|
								#
							 | 
						|
								#    Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
							 | 
						|
								#    Author: Cybrosys (odoo@cybrosys.com)
							 | 
						|
								#
							 | 
						|
								#    You can modify it under the terms of the GNU LESSER
							 | 
						|
								#    GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
							 | 
						|
								#
							 | 
						|
								#    This program is distributed in the hope that it will be useful,
							 | 
						|
								#    but WITHOUT ANY WARRANTY; without even the implied warranty of
							 | 
						|
								#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
							 | 
						|
								#    GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
							 | 
						|
								#
							 | 
						|
								#    You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
							 | 
						|
								#    (LGPL v3) along with this program.
							 | 
						|
								#    If not, see <http://www.gnu.org/licenses/>.
							 | 
						|
								#
							 | 
						|
								#############################################################################
							 | 
						|
								from odoo import models
							 | 
						|
								
							 | 
						|
								
							 | 
						|
								class ThemeZen(models.AbstractModel):
							 | 
						|
								    """Class to inherit theme util to perform post functions."""
							 | 
						|
								    _inherit = 'theme.utils'
							 | 
						|
								
							 | 
						|
								    def _theme_zen_dark_post_copy(self, mod):
							 | 
						|
								        """Function to perform on the installation of theme like
							 | 
						|
								           disabling or enabling necessary views
							 | 
						|
								           @param mod: get module data
							 | 
						|
								        """
							 | 
						|
								        self.enable_view('website.template_header_hamburger')
							 | 
						|
								        self.enable_view('website_blog.opt_blog_sidebar_show')
							 | 
						|
								        self.enable_view('website_blog.opt_blog_post_sidebar')
							 | 
						|
								        self.enable_view('website_blog.opt_blog_list_view')
							 | 
						|
								        self.enable_view('website_sale_wishlist.add_to_wishlist')
							 | 
						|
								        self.disable_view('website.header_call_to_action')
							 | 
						|
								        self.enable_view('website.header_visibility_disappears')
							 | 
						|
								        self.disable_view('website.template_header_default')
							 | 
						|
								        self.disable_view('website_blog.opt_posts_loop_show_author')
							 | 
						|
								        self.disable_view('website_sale.products_list_view')
							 | 
						|
								
							 |