fix: filter out js type print formats in customize form
This commit is contained in:
parent
e67b0d2e22
commit
8724bbb3dd
1 changed files with 8 additions and 0 deletions
|
|
@ -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"});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue