move Company Export Defaults button from list to form view
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ee421cf613
commit
ac7a3fe42e
|
|
@ -27,6 +27,7 @@ doctype_js = {
|
||||||
"Sales Invoice": "public/js/sales_invoice.js",
|
"Sales Invoice": "public/js/sales_invoice.js",
|
||||||
"Employee": "public/js/employee.js",
|
"Employee": "public/js/employee.js",
|
||||||
"Bank Reconciliation Tool": "public/js/bank_reconciliation_tool.js",
|
"Bank Reconciliation Tool": "public/js/bank_reconciliation_tool.js",
|
||||||
|
"Company": "public/js/company_form.js",
|
||||||
}
|
}
|
||||||
|
|
||||||
doctype_list_js = {
|
doctype_list_js = {
|
||||||
|
|
@ -34,7 +35,6 @@ doctype_list_js = {
|
||||||
"Salary Component": "public/js/salary_component_list.js",
|
"Salary Component": "public/js/salary_component_list.js",
|
||||||
"Account": "public/js/account_list.js",
|
"Account": "public/js/account_list.js",
|
||||||
"Leave Type": "public/js/leave_type_list.js",
|
"Leave Type": "public/js/leave_type_list.js",
|
||||||
"Company": "public/js/company_list.js",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extend_doctype_class = {
|
extend_doctype_class = {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
frappe.listview_settings["Company"] = {
|
frappe.ui.form.on("Company", {
|
||||||
onload: function (listview) {
|
refresh: function (frm) {
|
||||||
listview.page.add_inner_button(__("Export Defaults"), function () {
|
frm.add_custom_button(__("Export Defaults"), function () {
|
||||||
frappe.call({
|
frappe.call({
|
||||||
method: "jey_erp.custom.company_export.export_company_defaults",
|
method: "jey_erp.custom.company_export.export_company_defaults",
|
||||||
callback: function (r) {
|
callback: function (r) {
|
||||||
|
|
@ -17,4 +17,4 @@ frappe.listview_settings["Company"] = {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
};
|
});
|
||||||
Loading…
Reference in New Issue