From f21ff0bfbbb34455ebcc07459e020b4a8fe3ddad Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Mon, 10 Nov 2025 03:23:57 -0500 Subject: [PATCH] [ADD] todo support robotlibre and fixes --- script/todo/todo.json | 10 ++++++++++ script/todo/todo.py | 13 ++++++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/script/todo/todo.json b/script/todo/todo.json index 07157dd..b96e68a 100644 --- a/script/todo/todo.json +++ b/script/todo/todo.json @@ -13,6 +13,16 @@ "prompt_description": "Test - Instance de base minimale", "makefile_cmd": "db_restore_erplibre_base_db_test", "database": "test" + }, + { + "prompt_description": "Ouvrir RobotLibre \uD83E\uDD16 minimal", + "makefile_cmd": "robot_libre", + "database": "robotlibre" + }, + { + "prompt_description": "Ouvrir RobotLibre \uD83E\uDD16 en activant la recherche", + "makefile_cmd": "robot_libre_all", + "database": "robotlibre" } ], "function": [ diff --git a/script/todo/todo.py b/script/todo/todo.py index c412e78..fcae315 100755 --- a/script/todo/todo.py +++ b/script/todo/todo.py @@ -209,7 +209,7 @@ class TODO: def prompt_execute(self): help_info = """Commande : [1] Run - Exécuter et installer une instance -[2] Exec - Automatisation - Démonstration des fonctions développées +[2] Automatisation - Démonstration des fonctions développées [3] Mise à jour - Update all developed staging source code [4] Code - Outil pour développeur [5] Doc - Recherche de documentation @@ -408,11 +408,16 @@ class TODO: makefile_cmd = dct_instance.get("makefile_cmd") if makefile_cmd and not ignore_makefile: - self.executer_commande_live( + status = self.executer_commande_live( f"make {makefile_cmd}", source_erplibre=False, single_source_erplibre=True, ) + if status: + _logger.error( + f"Status {status} - exit execute_from_configuration" + ) + return if exec_run_db: db_name = dct_instance.get("database") @@ -785,7 +790,9 @@ class TODO: 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}") + _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}"