From c1039d6d944bb69acca50e98ec1f9d2a4e98b00b Mon Sep 17 00:00:00 2001 From: "Antoine Vandevenne (anv)" Date: Thu, 1 Apr 2021 14:24:00 +0200 Subject: [PATCH] fix version master being compared to 14.3alpha1 --- conf.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/conf.py b/conf.py index c7679617b..74a575f3d 100644 --- a/conf.py +++ b/conf.py @@ -68,10 +68,11 @@ if not odoo_dir.is_dir(): else: sys.path.insert(0, str(odoo_dir.absolute())) from odoo import release as odoo_release # Don't collide with Sphinx's 'release' config option - if release != odoo_release.version: + odoo_version = odoo_release.version if 'alpha' not in odoo_release.version else 'master' + if release != odoo_version: _logger.warning( - f"Found Odoo sources directory but with version {odoo_release.version} incompatible " - f"with documentation version {version}.\n" + f"Found Odoo sources directory but with version '{odoo_version}' incompatible with " + f"documentation version '{version}'.\n" f"The 'Developer' documentation will be built but autodoc directives will be skipped.\n" f"In order to fully build the 'Developer' documentation, checkout the matching branch" f" with `cd odoo && git checkout {version}`."