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.
InstallScript_Odoo/wk_backup_restore/__init__.py

21 lines
808 B

# -*- coding: utf-8 -*-
#################################################################################
#
# Copyright (c) 2017-Present Webkul Software Pvt. Ltd. (<https://webkul.com/>)
# 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 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