summaryrefslogtreecommitdiff
path: root/odoo
diff options
context:
space:
mode:
authorXavier-Do <xdo@odoo.com>2020-03-10 12:25:38 +0000
committerXavier-Do <xdo@odoo.com>2020-03-11 10:35:20 +0000
commit7313e4c7ec4d30c88e21c74afe8947b001e47533 (patch)
tree1031d30ac3434f841ed10963f03a094000700808 /odoo
parentb08e3d114aa4efe687b4d4cca3de462a3dbe6eea (diff)
[IMP] core: change master release version.
Before this, the master version is the next major version without taking intermediate saas versions into account. Depending on the point of view, one or other choice can make more sense. Anyway, master is always closer to next saas than next release. Using next major release can be problematic from a technical reason, mainly for upgrade scripts A simple exemple is to write upgrade scripts for master. The script version will be something like 13.3.1.2 since next saas is saas 13.3 and module version 1.2. The problem here is that installing a database in master will have module versions setted to 14.0.1.2 since release.py indicates that version is 14.0, making it impossible to test an incremental version script 13.3.1.3 in master (will never be executed, 13.3.1.3 < 14.0.1.2) Another exemple is when testing migrations on a not-rebased branch. Hypotetically if all upgrade scripts are linked to a specific version of a module (module version is incremented each time a upgrade script is added), someone using an old version of the master won't have the script 13.3.1.3 executed if current module version is 1.2. (which is not true now since module version will be considered to be 14.0.1.2 (> 13.3.1.2). closes odoo/odoo#47281 Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
Diffstat (limited to 'odoo')
-rw-r--r--odoo/release.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/release.py b/odoo/release.py
index 7c36383e1d2..02359d3655a 100644
--- a/odoo/release.py
+++ b/odoo/release.py
@@ -12,7 +12,7 @@ RELEASE_LEVELS_DISPLAY = {ALPHA: ALPHA,
# properly comparable using normal operarors, for example:
# (6,1,0,'beta',0) < (6,1,0,'candidate',1) < (6,1,0,'candidate',2)
# (6,1,0,'candidate',2) < (6,1,0,'final',0) < (6,1,2,'final',0)
-version_info = (14, 0, 0, ALPHA, 1, '')
+version_info = (13, 3, 0, ALPHA, 1, '')
version = '.'.join(str(s) for s in version_info[:2]) + RELEASE_LEVELS_DISPLAY[version_info[3]] + str(version_info[4] or '') + version_info[5]
series = serie = major_version = '.'.join(str(s) for s in version_info[:2])