mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-13 23:38:01 +00:00
fix: use meta to check field instead of doctype
(cherry picked from commit 187c74ae09)
This commit is contained in:
@@ -146,7 +146,7 @@ erpnext.buying = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
company(){
|
company(){
|
||||||
if(this.frm.doc.doctype == "Material Request") return;
|
if(!frappe.meta.has_field(this.frm.doc.doctype, "billing_address")) return;
|
||||||
|
|
||||||
frappe.call({
|
frappe.call({
|
||||||
method: "erpnext.setup.doctype.company.company.get_default_company_address",
|
method: "erpnext.setup.doctype.company.company.get_default_company_address",
|
||||||
|
|||||||
Reference in New Issue
Block a user