30 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
			
		
		
	
	
			30 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
# -*- coding: utf-8 -*-
 | 
						|
#################################################################################
 | 
						|
# Author      : Webkul Software Pvt. Ltd. (<https://webkul.com/>)
 | 
						|
# Copyright(c): 2015-Present Webkul Software Pvt. Ltd.
 | 
						|
# License URL : https://store.webkul.com/license.html/
 | 
						|
# All Rights Reserved.
 | 
						|
#
 | 
						|
#
 | 
						|
#
 | 
						|
# This program is copyright property of the author mentioned above.
 | 
						|
# You can`t redistribute it and/or modify it.
 | 
						|
#
 | 
						|
#
 | 
						|
# You should have received a copy of the License along with this program.
 | 
						|
# If not, see <https://store.webkul.com/license.html/>
 | 
						|
#################################################################################
 | 
						|
 | 
						|
from . import models
 | 
						|
from . import controllers
 | 
						|
 | 
						|
def pre_init_check(cr):
 | 
						|
    from odoo.service import common
 | 
						|
    from odoo.exceptions import Warning
 | 
						|
    version_info = common.exp_version()
 | 
						|
    server_serie = version_info.get('server_serie')
 | 
						|
    if server_serie != '11.0':
 | 
						|
        raise Warning(
 | 
						|
            'Module support Odoo series 11.0 found {}.'.format(server_serie))
 | 
						|
    return True
 |