Skip to content

Commit

Permalink
refactor: Update e-Invoice Log list view
Browse files Browse the repository at this point in the history
(cherry picked from commit ba43134)
  • Loading branch information
Abdeali099 authored and mergify[bot] committed Dec 5, 2024
1 parent 8f6ba93 commit f54a92f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) 2022, Resilient Tech and contributors
// For license information, please see license.txt

frappe.ui.form.on('e-Invoice Log', {
// refresh: function(frm) {
// frappe.ui.form.on('e-Invoice Log', {
// refresh: function(frm) {

// }
});
// }
// });
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright (c) 2024, Resilient Tech and contributors
// For license information, please see license.txt

frappe.listview_settings["e-Invoice Log"] = {
hide_name_column: true,

button: {
show: function (doc) {
return doc.reference_name;
},

get_label: function () {
return __("Open Reference");
},

get_description: function (doc) {
return __("Open {0}", [
`${__(doc.reference_doctype)}: ${doc.reference_name}`,
]);
},

action: function (doc) {
frappe.set_route("Form", doc.reference_doctype, doc.reference_name);
},
},
};

0 comments on commit f54a92f

Please sign in to comment.