From 32b506457a12d8a4b5bae9df879c6c54c59c5f5b Mon Sep 17 00:00:00 2001 From: "Antoine Vandevenne (anv)" Date: Fri, 3 Dec 2021 11:52:29 +0100 Subject: [PATCH] [FIX] conf.py: allow matching odoo sources with ~ in the version string --- conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf.py b/conf.py index 1233ed37d..b63b680f0 100644 --- a/conf.py +++ b/conf.py @@ -80,7 +80,8 @@ else: # Running odoo needs python 3.7 min but monkey patch version_info to be compatible with 3.6 sys.version_info = (3, 7, 0) from odoo import release as odoo_release # Don't collide with Sphinx's 'release' config option - odoo_version = odoo_release.version if 'alpha' not in odoo_release.version else 'master' + odoo_version = odoo_release.version.replace('~', '-') # Change saas~XX.Y to saas-XX.Y + odoo_version = 'master' if 'alpha' in odoo_release.version else odoo_version if release != odoo_version: _logger.warning( "Found Odoo sources in %(directory)s but with version '%(odoo_version)s' incompatible "