chore: Add Filter Group to dialogs

This commit is contained in:
marination 2020-09-24 12:43:41 +05:30
parent cfc5e29127
commit 4f395cce54

View File

@ -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){