fix: align opportunity UI with canonical current action

This commit is contained in:
plx
2026-08-15 09:47:19 +00:00
parent ee8e2de606
commit 47f21888f9
5 changed files with 366 additions and 12 deletions

View File

@@ -1512,7 +1512,8 @@ def list_opportunities(
status: Optional[str] = None,
limit: int = 300,
) -> List[Dict[str, Any]]:
ensure_opportunity_schema()
# Read paths must not attempt startup/migration DDL. The application
# schema is established explicitly before serving requests.
# A oportunidade mantém dois conceitos diferentes:
# - o.customer_*: contacto/origem captado da conversa/tarefa;
# - o.local_customer_id -> customers: ficha fiscal usada em Jasmin/documentos.