mirror of
https://github.com/Ladebeze66/odoo_toolkit.git
synced 2025-12-16 10:57:49 +01:00
jour5-2
This commit is contained in:
parent
dca01edc86
commit
ebc199362e
Binary file not shown.
@ -1,12 +1,16 @@
|
|||||||
from menu_handlers import (
|
from menu_handlers import (
|
||||||
handle_project_tickets_by_stage
|
handle_project_tickets_by_stage,
|
||||||
|
handle_search_ticket_by_id,
|
||||||
|
handle_search_ticket_by_code
|
||||||
)
|
)
|
||||||
|
|
||||||
def display_main_menu():
|
def display_main_menu():
|
||||||
"""Affiche le menu principal de l'application"""
|
"""Affiche le menu principal de l'application"""
|
||||||
print("\n==== GESTIONNAIRE DE TICKETS ODOO ====")
|
print("\n==== GESTIONNAIRE DE TICKETS ODOO ====")
|
||||||
print("1. Exporter les tickets d'un project_id par étape")
|
print("1. Exporter les tickets d'un project_id par étape")
|
||||||
print("2. Quitter")
|
print("2. Rechercher un ticket par ID")
|
||||||
|
print("3. Rechercher un ticket par Code")
|
||||||
|
print("4. Quitter")
|
||||||
return input("\nChoisissez une option (1-5): ")
|
return input("\nChoisissez une option (1-5): ")
|
||||||
|
|
||||||
|
|
||||||
@ -17,7 +21,11 @@ def run_menu():
|
|||||||
if choice == '1':
|
if choice == '1':
|
||||||
handle_project_tickets_by_stage()
|
handle_project_tickets_by_stage()
|
||||||
elif choice == '2':
|
elif choice == '2':
|
||||||
|
handle_search_ticket_by_id()
|
||||||
|
elif choice == '3':
|
||||||
|
handle_search_ticket_by_code()
|
||||||
|
elif choice == '4':
|
||||||
print("Au revoir!")
|
print("Au revoir!")
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
print("Option invalide. Veuillez choisir entre 1 et 5.")
|
print("Option invalide. Veuillez choisir entre 1 et 4.")
|
||||||
Loading…
x
Reference in New Issue
Block a user