fix: check permission for ctrl+p shortcut
This commit is contained in:
parent
ae0b6510fe
commit
77e3fdd375
1 changed files with 1 additions and 0 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue