fix: not able to submit purchase order (#16735)
diff --git a/erpnext/regional/italy/utils.py b/erpnext/regional/italy/utils.py
index 51aa93a..7e0386a 100644
--- a/erpnext/regional/italy/utils.py
+++ b/erpnext/regional/italy/utils.py
@@ -183,6 +183,9 @@
#Preflight for successful e-invoice export.
def sales_invoice_validate(doc):
#Validate company
+ if doc.doctype != 'Sales Invoice':
+ return
+
if not doc.company_address:
frappe.throw(_("Please set an Address on the Company '%s'" % doc.company), title=_("E-Invoicing Information Missing"))
else: