#!/usr/bin/env python3 """Verify print formats were imported.""" import frappe frappe.init(site="erpnext.local") frappe.connect() pfs = frappe.get_all("Print Format", filters={"doc_type": ["in", ["Pallet", "Load"]]}, fields=["name", "doc_type", "custom_format"] ) print("Print Formats for Pallet/Load:") for pf in pfs: print(f" - {pf['name']} ({pf['doc_type']}, custom={pf['custom_format']})") frappe.destroy()