mirror of
https://github.com/Ladebeze66/odoo_toolkit.git
synced 2025-12-15 19:26:55 +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 (
|
||||
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.")
|
||||
Loading…
x
Reference in New Issue
Block a user