mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 10:14:59 +00:00
fix: scrub "-" from fieldname in accounting dimension
(cherry picked from commit 023b7b9a60)
This commit is contained in:
@@ -58,7 +58,7 @@ frappe.ui.form.on("Accounting Dimension", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
label: function (frm) {
|
label: function (frm) {
|
||||||
frm.set_value("fieldname", frappe.model.scrub(frm.doc.label));
|
frm.set_value("fieldname", frm.doc.label.replace(/ /g, "_").replace(/-/g, "_").toLowerCase());
|
||||||
},
|
},
|
||||||
|
|
||||||
document_type: function (frm) {
|
document_type: function (frm) {
|
||||||
|
|||||||
Reference in New Issue
Block a user