[ADD] todo support robotlibre and fixes

This commit is contained in:
Mathieu Benoit 2025-11-10 03:23:57 -05:00
parent fad04b59ee
commit f21ff0bfbb
2 changed files with 20 additions and 3 deletions

View file

@ -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": [

View file

@ -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}"