fix: use meta to check field instead of doctype

(cherry picked from commit 187c74ae09)
This commit is contained in:
Sanket322
2024-12-27 12:53:41 +05:30
committed by Mergify
parent 98631eb266
commit e582ff862e

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",