queries to server side
This commit is contained in:
parent
86408c3d44
commit
2deca5f3f6
@ -56,8 +56,8 @@ erpnext.buying.BuyingController = erpnext.TransactionController.extend({
|
||||
}
|
||||
} else {
|
||||
return{
|
||||
query:"controllers.queries.item_query",
|
||||
filters:{ 'is_purchase_item': 'Yes' }
|
||||
query: "controllers.queries.item_query",
|
||||
filters: { 'is_purchase_item': 'Yes' }
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -29,7 +29,7 @@ def get_filters_cond(doctype, filters, conditions):
|
||||
flt.append([doctype, f[0], '=', f[1]])
|
||||
|
||||
from webnotes.widgets.reportview import build_filter_conditions
|
||||
build_filter_conditions(filters, conditions)
|
||||
build_filter_conditions(flt, conditions)
|
||||
cond = ' and ' + ' and '.join(conditions)
|
||||
else:
|
||||
cond = ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user