Skip to content

Commit

Permalink
Merge pull request #43029 from Nihantra-Patel/fix_company_filter
Browse files Browse the repository at this point in the history
fix: move setup_queries to refresh event for company
  • Loading branch information
Nihantra-Patel authored Sep 3, 2024
2 parents fb6b960 + 80ace72 commit 8900166
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/setup/doctype/company/company.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ frappe.ui.form.on("Company", {
},
setup: function (frm) {
frm.__rename_queue = "long";
erpnext.company.setup_queries(frm);

frm.set_query("parent_company", function () {
return {
Expand Down Expand Up @@ -81,6 +80,8 @@ frappe.ui.form.on("Company", {
},

refresh: function (frm) {
erpnext.company.setup_queries(frm);

frm.toggle_display("address_html", !frm.is_new());

if (!frm.is_new()) {
Expand Down

0 comments on commit 8900166

Please sign in to comment.