[UPD] todo: show error when missing odoo version for odoo command

This commit is contained in:
Mathieu Benoit 2025-10-31 21:55:51 -04:00
parent 3560bd05a3
commit de6d1b5eeb

View file

@ -784,6 +784,9 @@ class TODO:
if not source_odoo and os.path.exists("./.erplibre-version"):
with open("./.erplibre-version") as f:
source_odoo = f.read()
if not source_odoo:
_logger.error(f"You cannot execute Odoo command if no version is installed. Command : {commande}")
return -1
commande = (
f"source ./.venv.{source_odoo}/bin/activate && {commande}"
)