16 lines
737 B
Python
16 lines
737 B
Python
# -*- coding: utf-8 -*-
|
|
#################################################################################
|
|
#
|
|
# Copyright (c) 2018-Present Webkul Software Pvt. Ltd. (<https://webkul.com/>)
|
|
# See LICENSE URL <https://store.webkul.com/license.html/> for full copyright and licensing details.
|
|
#################################################################################
|
|
from . import models,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 not 16.0 < float(server_serie) <= 17.0:
|
|
raise UserError(f'Module support Odoo series 17.0 but found {server_serie}.')
|