Skip to content

Commit

Permalink
refactor: remove extraneous disabled filters (backport #37732) (#37749)
Browse files Browse the repository at this point in the history
refactor: remove extraneous disabled filters

(cherry picked from commit f276fbb)

Co-authored-by: Bernd Oliver Sünderhauf <[email protected]>
  • Loading branch information
mergify[bot] and bosue authored Oct 30, 2023
1 parent 4819fde commit 18e40dd
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ frappe.query_reports["Profitability Analysis"] = {
"label": __("Accounting Dimension"),
"fieldtype": "Link",
"options": "Accounting Dimension",
"get_query": () =>{
return {
filters: {
"disabled": 0
}
}
}
},
{
"fieldname": "fiscal_year",
Expand Down
1 change: 0 additions & 1 deletion erpnext/assets/doctype/asset/asset.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ frappe.ui.form.on('Asset', {
frm.set_query("item_code", function() {
return {
"filters": {
"disabled": 0,
"is_fixed_asset": 1,
"is_stock_item": 0
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ frappe.query_reports["Supplier Quotation Comparison"] = {
}
}
}
else {
return {
filters: { "disabled": 0 }
}
}
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ frappe.query_reports["BOM Operations Time"] = {
"options": "Item",
"get_query": () =>{
return {
filters: { "disabled": 0, "is_stock_item": 1 }
filters: { "is_stock_item": 1 }
}
}
},
Expand Down
1 change: 0 additions & 1 deletion erpnext/public/js/controllers/accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ erpnext.accounts.taxes = {
filters: {
"account_type": account_type,
"company": doc.company,
"disabled": 0
}
}
});
Expand Down
1 change: 0 additions & 1 deletion erpnext/stock/doctype/item_price/item_price.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ frappe.ui.form.on("Item Price", {
frm.set_query("item_code", function() {
return {
filters: {
"disabled": 0,
"has_variants": 0
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,6 @@ frappe.ui.form.on("Stock Reconciliation", {
fieldname: "item_code",
fieldtype: "Link",
options: "Item",
"get_query": function() {
return {
"filters": {
"disabled": 0,
}
};
}
},
{
label: __("Ignore Empty Stock"),
Expand Down
7 changes: 0 additions & 7 deletions erpnext/support/doctype/issue/issue.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
frappe.ui.form.on("Issue", {
onload: function(frm) {
frm.email_field = "raised_by";
frm.set_query("customer", function () {
return {
filters: {
"disabled": 0
}
};
});

frappe.db.get_value("Support Settings", {name: "Support Settings"},
["allow_resetting_service_level_agreement", "track_service_level_agreement"], (r) => {
Expand Down

0 comments on commit 18e40dd

Please sign in to comment.