From 4f395cce54579e02804bc3678b35ff4cc0fcd8d2 Mon Sep 17 00:00:00 2001 From: marination Date: Thu, 24 Sep 2020 12:43:41 +0530 Subject: [PATCH] chore: Add Filter Group to dialogs --- erpnext/public/js/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/public/js/utils.js b/erpnext/public/js/utils.js index 87982f14a6..9ed500932f 100755 --- a/erpnext/public/js/utils.js +++ b/erpnext/public/js/utils.js @@ -480,7 +480,7 @@ erpnext.utils.update_child_items = function(opts) { callback: r => { if(!r.exc) { if (this.doc.conversion_factor == r.message.conversion_factor) return; - + const docname = this.doc.docname; dialog.fields_dict.trans_items.df.data.some(doc => { if (doc.docname == docname) { @@ -677,6 +677,7 @@ erpnext.utils.map_current_doc = function(opts) { date_field: opts.date_field || undefined, setters: opts.setters, get_query: opts.get_query, + add_filters_group: 1, action: function(selections, args) { let values = selections; if(values.length === 0){