Don't overwrite dispatch
This commit is contained in:
@@ -22,6 +22,10 @@ def cli() -> None:
|
|||||||
def dispatch():
|
def dispatch():
|
||||||
"""Randomly distribute unassigned tasks among team members."""
|
"""Randomly distribute unassigned tasks among team members."""
|
||||||
|
|
||||||
|
if DispatchStorage.load():
|
||||||
|
print("[red]Tickets were already dispatched.[/red]")
|
||||||
|
return
|
||||||
|
|
||||||
client = odoo_client.OdooClient()
|
client = odoo_client.OdooClient()
|
||||||
today = datetime.now().strftime("%Y-%m-%d")
|
today = datetime.now().strftime("%Y-%m-%d")
|
||||||
domain = [
|
domain = [
|
||||||
|
|||||||
Reference in New Issue
Block a user