mirror of
https://github.com/Ladebeze66/odoo_toolkit.git
synced 2025-12-15 20:26:53 +01:00
31 lines
986 B
Python
31 lines
986 B
Python
from menu_handlers import (
|
|
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. Rechercher un ticket par ID")
|
|
print("3. Rechercher un ticket par Code")
|
|
print("4. Quitter")
|
|
return input("\nChoisissez une option (1-4): ")
|
|
|
|
|
|
def run_menu():
|
|
"""Exécute la boucle du menu principal"""
|
|
while True:
|
|
choice = display_main_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 4.") |