# -*- coding: utf-8 -*- ################################################################################# # # Copyright (c) 2017-Present Webkul Software Pvt. Ltd. () # You should have received a copy of the License along with this program. # If not, see ################################################################################# from . import models from . import wizards from . import controllers def pre_init_check(cr): from odoo.service import common from odoo.exceptions import UserError version_info = common.exp_version() server_serie =version_info.get('server_serie') if server_serie != '18.0': raise UserError('Module support Odoo series 18.0 found {}.'.format(server_serie)) return True