[Fix] Sales invoice email prompt not working

This commit is contained in:
Rohit Waghchaure 2018-03-01 13:06:01 +05:30
parent 0df95fa781
commit 855d843e55

View File

@ -106,7 +106,7 @@ erpnext.accounts.SalesInvoiceController = erpnext.selling.SellingController.exte
on_submit: function(doc, dt, dn) {
var me = this;
if (frappe.get_route()[0] != 'Sales Invoice') {
if (frappe.get_route()[0] != 'Form') {
return
}