Skip to content

Commit

Permalink
fix: Company Contact Person is optional
Browse files Browse the repository at this point in the history
Not released in v15 as of today, but should be soon.
  • Loading branch information
barredterra committed Dec 11, 2024
1 parent c197fa6 commit 149986d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eu_einvoice/european_e_invoice/custom/sales_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def get_einvoice(invoice: str | SalesInvoice) -> bytes:
buyer_address = frappe.get_doc("Address", invoice.customer_address)

seller_contact = None
if invoice.company_contact_person:
if invoice.get("company_contact_person"):
seller_contact = frappe.get_doc("Contact", invoice.company_contact_person)

buyer_contact = None
Expand Down

0 comments on commit 149986d

Please sign in to comment.