fix: check permission for ctrl+p shortcut

This commit is contained in:
Gursheen Anand 2024-06-28 20:29:15 +05:30
parent ae0b6510fe
commit 77e3fdd375

View file

@ -167,6 +167,7 @@ frappe.ui.form.Form = class FrappeForm {
shortcut: "ctrl+p",
action: () => this.print_doc(),
description: __("Print document"),
condition: () => frappe.model.can_print(this.doctype, this) && !this.meta.issingle,
});
let grid_shortcut_keys = [