fix: filter out js type print formats in customize form

This commit is contained in:
prssanna 2020-01-15 15:53:31 +05:30
parent e67b0d2e22
commit 8724bbb3dd

View file

@ -17,6 +17,14 @@ frappe.ui.form.on("Customize Form", {
};
});
frm.set_query("default_print_format", function() {
return {
filters: {
'print_format_type': ['!=', 'JS']
}
}
});
$(frm.wrapper).on("grid-row-render", function(e, grid_row) {
if(grid_row.doc && grid_row.doc.fieldtype=="Section Break") {
$(grid_row.row).css({"font-weight": "bold"});