fix: open print preview in new tab (#9402)

This commit is contained in:
Mangesh-Khairnar 2020-02-06 18:13:44 +05:30 committed by GitHub
parent ba5bce093d
commit 7875ebaf28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {