Merge pull request #9702 from mbauskar/installation-note
[hotfix] fixed the customer address set filter on Installation Note
This commit is contained in:
commit
dba3f0048b
@ -30,12 +30,8 @@ erpnext.selling.InstallationNote = frappe.ui.form.Controller.extend({
|
|||||||
setup_queries: function() {
|
setup_queries: function() {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
this.frm.set_query("customer_address", function() {
|
frappe.dynamic_link = {doc: this.frm.doc, fieldname: 'customer', doctype: 'Customer'}
|
||||||
return {
|
frm.set_query('customer_address', erpnext.queries.address_query);
|
||||||
filters: {'customer': me.frm.doc.customer }
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
this.frm.set_query('contact_person', erpnext.queries.contact_query);
|
this.frm.set_query('contact_person', erpnext.queries.contact_query);
|
||||||
|
|
||||||
this.frm.set_query("customer", function() {
|
this.frm.set_query("customer", function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user