fix: use meta to check field instead of doctype

This commit is contained in:
Sanket322
2024-12-27 12:53:41 +05:30
parent cb197fd01f
commit 187c74ae09

View File

@@ -146,7 +146,7 @@ erpnext.buying = {
}
company(){
if(this.frm.doc.doctype == "Material Request") return;
if(!frappe.meta.has_field(this.frm.doc.doctype, "billing_address")) return;
frappe.call({
method: "erpnext.setup.doctype.company.company.get_default_company_address",