diff --git a/erpnext/maintenance/doctype/maintenance_schedule/maintenance_schedule.js b/erpnext/maintenance/doctype/maintenance_schedule/maintenance_schedule.js index da7d133d21..84c66b5e05 100644 --- a/erpnext/maintenance/doctype/maintenance_schedule/maintenance_schedule.js +++ b/erpnext/maintenance/doctype/maintenance_schedule/maintenance_schedule.js @@ -35,8 +35,7 @@ erpnext.maintenance.MaintenanceSchedule = frappe.ui.form.Controller.extend({ source_doctype: "Sales Order", target: me.frm, setters: { - customer: me.frm.doc.customer || undefined, - order_type: me.frm.doc.order_type, + customer: me.frm.doc.customer || undefined }, get_query_filters: { docstatus: 1, diff --git a/erpnext/selling/doctype/sales_order/sales_order.js b/erpnext/selling/doctype/sales_order/sales_order.js index 5a4de0bfdc..7850119c6d 100644 --- a/erpnext/selling/doctype/sales_order/sales_order.js +++ b/erpnext/selling/doctype/sales_order/sales_order.js @@ -138,8 +138,7 @@ erpnext.selling.SalesOrderController = erpnext.selling.SellingController.extend( source_doctype: "Quotation", target: me.frm, setters: { - customer: me.frm.doc.customer || undefined, - order_type: me.frm.doc.order_type, + customer: me.frm.doc.customer || undefined }, get_query_filters: { company: me.frm.doc.company,