fix: open print preview in new tab (#9402)
This commit is contained in:
parent
ba5bce093d
commit
7875ebaf28
1 changed files with 2 additions and 2 deletions
|
|
@ -155,10 +155,10 @@ export default class WebForm extends frappe.ui.FieldGroup {
|
|||
}
|
||||
|
||||
print() {
|
||||
window.location.href = `/printview?
|
||||
window.open(`/printview?
|
||||
doctype=${this.doc_type}
|
||||
&name=${this.doc.name}
|
||||
&format=${this.print_format || "Standard"}`;
|
||||
&format=${this.print_format || "Standard"}`, '_blank');
|
||||
}
|
||||
|
||||
cancel() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue