Skip to content

Commit c2cd2b7

Browse files
committed
[IMP] base version: lower from warning to info
In Odoofin, we don't have a master branch, we always update current stable version (17.0 at the moment) through module migration scripts. This was previously handled by internal at each major version update. We now handle the scripts in the accounting team, thus have an upgrade CI. The warning modified in this PR seems to be legitimally raised, since base is not changed, it is probably skipped in the update even if we do the upgrade with `-u all`. The warning level is preventing us to merge without admin rights, thus we propose to lower the warning to info level. Example of build with this warning: https://runbot.odoo.com/runbot/build/63601210 closes #95 Signed-off-by: Christophe Simonis (chs) <[email protected]>
1 parent be91fed commit c2cd2b7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/util/inherit.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import operator
44
import os
55

6-
from .const import ENVIRON
6+
from .const import ENVIRON, NEARLYWARN
77
from .misc import _cached, parse_version, version_gte
88

99
_logger = logging.getLogger(__name__)
@@ -63,7 +63,8 @@ def _get_base_version(cr):
6363
state, version = cr.fetchone()
6464
if state != "to upgrade":
6565
major = ".".join(version.split(".")[:2])
66-
_logger.warning(
66+
_logger.log(
67+
NEARLYWARN,
6768
"Assuming upgrading from Odoo %s. If it's not the case, specify the environment variable `ODOO_BASE_VERSION`.",
6869
major,
6970
)

0 commit comments

Comments
 (0)