Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Change invoice email event get user method

Tomasz Szymanski57441a31a14b
diff --git a/saleor/invoice/events.py b/saleor/invoice/events.py
index 6fa3a79d28..679eef3dc2 100644
--- a/saleor/invoice/events.py
+++ b/saleor/invoice/events.py
@@ -66,5 +66,5 @@ def invoice_sent_event(*, user: UserType, invoice: Invoice) -> InvoiceEvent:
type=InvoiceEvents.SENT,
user=user,
invoice=invoice,
- parameters={"email": invoice.order.user.email}, # type: ignore
+ parameters={"email": invoice.order.get_customer_email()}, # type: ignore
)