fix: Currency labels in grids (#12974)

This commit is contained in:
Saqib 2021-04-23 20:35:55 +05:30 committed by GitHub
parent 669fead799
commit 2c7136761e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1203,8 +1203,7 @@ frappe.ui.form.Form = class FrappeForm {
$.each(grid_field_label_map, function(fname, label) {
fname = fname.split("-");
var df = frappe.meta.get_docfield(fname[0], fname[1], me.doc.name);
if(df) df.label = label;
me.fields_dict[parentfield].grid.update_docfield_property(fname[1], 'label', label);
});
}