We have created two print formats: X1 and X2. X1 is set as the default print format for Sales Invoices. However, we want X2 to be the default print format for a specific user only. Is this possible in ERPNext 15?
Hi @M.K.Raj
It is possible, we need add a simple script for that.
if (frappe.session.user == "your_user") {
frm.meta.default_print_format = "your_format"
}
Create a client script for your doctype and in refresh function add this code.
Thanks & Regards
2 Likes
Hi! It’s working—you made my day!
1 Like