[REF] Improve settings. Introduce _FIRST_ODOO_VERSION_SUPPORTED and _LAST_ODOO_VERSION_SUPPORTED

This commit is contained in:
Sylvain LE GAL 2024-11-04 10:55:46 +01:00
parent 02cf5f2d51
commit 0785c31825

View File

@ -2,7 +2,15 @@ from pathlib import Path
from loguru import logger
_ALL_ODOO_VERSIONS = [8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0]
FIRST_ODOO_VERSION_SUPPORTED = 8
LAST_ODOO_VERSION_SUPPORTED = 16
_ALL_ODOO_VERSIONS = [
float(x)
for x in range(
FIRST_ODOO_VERSION_SUPPORTED, LAST_ODOO_VERSION_SUPPORTED + 1
)
]
def get_version_options(mode: str) -> list: