From 3f6a5b25390b369683c7c0e97e74a68f19e4e7b5 Mon Sep 17 00:00:00 2001 From: mbauskar Date: Fri, 7 Jul 2017 15:24:01 +0530 Subject: [PATCH] [hotfix] fixed the customer address set filter on Installation Note --- .../doctype/installation_note/installation_note.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/erpnext/selling/doctype/installation_note/installation_note.js b/erpnext/selling/doctype/installation_note/installation_note.js index ab35574e31..9f0c050c4e 100644 --- a/erpnext/selling/doctype/installation_note/installation_note.js +++ b/erpnext/selling/doctype/installation_note/installation_note.js @@ -30,12 +30,8 @@ erpnext.selling.InstallationNote = frappe.ui.form.Controller.extend({ setup_queries: function() { var me = this; - this.frm.set_query("customer_address", function() { - return { - filters: {'customer': me.frm.doc.customer } - } - }); - + frappe.dynamic_link = {doc: this.frm.doc, fieldname: 'customer', doctype: 'Customer'} + frm.set_query('customer_address', erpnext.queries.address_query); this.frm.set_query('contact_person', erpnext.queries.contact_query); this.frm.set_query("customer", function() {