Skip to content

Commit

Permalink
refactor: Update e-Waybill Log list view
Browse files Browse the repository at this point in the history
(cherry picked from commit 69b556c)
  • Loading branch information
Abdeali099 authored and mergify[bot] committed Dec 5, 2024
1 parent 38fa3f1 commit 8f6ba93
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 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-Waybill Log', {
// frappe.ui.form.on('e-Waybill Log', {
// refresh: function(frm) {

// }
});
// });
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
{
"fieldname": "reference_doctype",
"fieldtype": "Link",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Reference Document Type",
"options": "DocType",
Expand Down Expand Up @@ -181,7 +182,7 @@
"link_fieldname": "ewaybill"
}
],
"modified": "2024-07-17 12:26:38.069883",
"modified": "2024-12-05 09:50:37.014667",
"modified_by": "Administrator",
"module": "GST India",
"name": "e-Waybill Log",
Expand Down
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-Waybill 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 8f6ba93

Please sign in to comment.