mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 06:52:12 +00:00
fix: company accounts setup_queries
(cherry picked from commit 80ace72541)
This commit is contained in:
committed by
Mergify
parent
d6de50634f
commit
b99cdb5be7
@@ -20,7 +20,6 @@ frappe.ui.form.on("Company", {
|
|||||||
},
|
},
|
||||||
setup: function (frm) {
|
setup: function (frm) {
|
||||||
frm.__rename_queue = "long";
|
frm.__rename_queue = "long";
|
||||||
erpnext.company.setup_queries(frm);
|
|
||||||
|
|
||||||
frm.set_query("parent_company", function () {
|
frm.set_query("parent_company", function () {
|
||||||
return {
|
return {
|
||||||
@@ -81,6 +80,8 @@ frappe.ui.form.on("Company", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
refresh: function (frm) {
|
refresh: function (frm) {
|
||||||
|
erpnext.company.setup_queries(frm);
|
||||||
|
|
||||||
frm.toggle_display("address_html", !frm.is_new());
|
frm.toggle_display("address_html", !frm.is_new());
|
||||||
|
|
||||||
if (!frm.is_new()) {
|
if (!frm.is_new()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user