mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-06 15:00:27 +00:00
[fix] Get defaults based on doctype or fieldname
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
frappe.ui.form.on("Hub Settings", "onload", function(frm) {
|
||||
if(!frm.doc.seller_country) {
|
||||
frm.set_value("seller_country", frappe.defaults.get_default("country"));
|
||||
frm.set_value("seller_country", frappe.defaults.get_default("Country"));
|
||||
}
|
||||
if(!frm.doc.seller_name) {
|
||||
frm.set_value("seller_name", frappe.defaults.get_default("company"));
|
||||
frm.set_value("seller_name", frappe.defaults.get_default("Company"));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user