This commit is contained in:
Ladebeze66 2025-03-18 15:23:17 +01:00
parent dca01edc86
commit ebc199362e
2 changed files with 11 additions and 3 deletions

View File

@ -1,12 +1,16 @@
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():
"""Affiche le menu principal de l'application"""
print("\n==== GESTIONNAIRE DE TICKETS ODOO ====")
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): ")
@ -17,7 +21,11 @@ def run_menu():
if choice == '1':
handle_project_tickets_by_stage()
elif choice == '2':
handle_search_ticket_by_id()
elif choice == '3':
handle_search_ticket_by_code()
elif choice == '4':
print("Au revoir!")
break
else:
print("Option invalide. Veuillez choisir entre 1 et 5.")
print("Option invalide. Veuillez choisir entre 1 et 4.")