fix(sales order): error message on creation of work order from sales order
(cherry picked from commit 129cd7ae8a)
This commit is contained in:
@@ -870,8 +870,8 @@ erpnext.selling.SalesOrderController = class SalesOrderController extends erpnex
|
||||
fields: fields,
|
||||
primary_action: function () {
|
||||
var data = { items: d.fields_dict.items.grid.get_selected_children() };
|
||||
if (!data) {
|
||||
frappe.throw(__("Please select items"));
|
||||
if (!data.items.length) {
|
||||
frappe.throw(__("Please select atleast one item to continue"));
|
||||
}
|
||||
me.frm.call({
|
||||
method: "make_work_orders",
|
||||
|
||||
Reference in New Issue
Block a user