Skip to content

Commit

Permalink
Merge pull request #2820 from resilient-tech/mergify/bp/version-15-ho…
Browse files Browse the repository at this point in the history
…tfix/pr-2812

refactor: Update list view for logs (backport #2812)
  • Loading branch information
mergify[bot] authored Dec 5, 2024
2 parents 38fa3f1 + f54a92f commit fef597f
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 7 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);
},
},
};
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 fef597f

Please sign in to comment.