From 064530d11faee1226178b34bca615d3bb00ccfec Mon Sep 17 00:00:00 2001 From: Prateeksha Singh Date: Fri, 19 May 2017 11:09:12 +0530 Subject: [PATCH] [minor] remove order_type as setter in multiselect (#8906) --- .../doctype/maintenance_schedule/maintenance_schedule.js | 3 +-- erpnext/selling/doctype/sales_order/sales_order.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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,