[ADD] todo support robotlibre and fixes
This commit is contained in:
parent
fad04b59ee
commit
f21ff0bfbb
2 changed files with 20 additions and 3 deletions
|
|
@ -13,6 +13,16 @@
|
||||||
"prompt_description": "Test - Instance de base minimale",
|
"prompt_description": "Test - Instance de base minimale",
|
||||||
"makefile_cmd": "db_restore_erplibre_base_db_test",
|
"makefile_cmd": "db_restore_erplibre_base_db_test",
|
||||||
"database": "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": [
|
"function": [
|
||||||
|
|
|
||||||
|
|
@ -209,7 +209,7 @@ class TODO:
|
||||||
def prompt_execute(self):
|
def prompt_execute(self):
|
||||||
help_info = """Commande :
|
help_info = """Commande :
|
||||||
[1] Run - Exécuter et installer une instance
|
[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
|
[3] Mise à jour - Update all developed staging source code
|
||||||
[4] Code - Outil pour développeur
|
[4] Code - Outil pour développeur
|
||||||
[5] Doc - Recherche de documentation
|
[5] Doc - Recherche de documentation
|
||||||
|
|
@ -408,11 +408,16 @@ class TODO:
|
||||||
|
|
||||||
makefile_cmd = dct_instance.get("makefile_cmd")
|
makefile_cmd = dct_instance.get("makefile_cmd")
|
||||||
if makefile_cmd and not ignore_makefile:
|
if makefile_cmd and not ignore_makefile:
|
||||||
self.executer_commande_live(
|
status = self.executer_commande_live(
|
||||||
f"make {makefile_cmd}",
|
f"make {makefile_cmd}",
|
||||||
source_erplibre=False,
|
source_erplibre=False,
|
||||||
single_source_erplibre=True,
|
single_source_erplibre=True,
|
||||||
)
|
)
|
||||||
|
if status:
|
||||||
|
_logger.error(
|
||||||
|
f"Status {status} - exit execute_from_configuration"
|
||||||
|
)
|
||||||
|
return
|
||||||
|
|
||||||
if exec_run_db:
|
if exec_run_db:
|
||||||
db_name = dct_instance.get("database")
|
db_name = dct_instance.get("database")
|
||||||
|
|
@ -785,7 +790,9 @@ class TODO:
|
||||||
with open("./.erplibre-version") as f:
|
with open("./.erplibre-version") as f:
|
||||||
source_odoo = f.read()
|
source_odoo = f.read()
|
||||||
if not source_odoo:
|
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
|
return -1
|
||||||
commande = (
|
commande = (
|
||||||
f"source ./.venv.{source_odoo}/bin/activate && {commande}"
|
f"source ./.venv.{source_odoo}/bin/activate && {commande}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue