Skip to content

Commit

Permalink
Merge pull request #37604 from blaggacao/feat/link-dn-list-from-dt-form
Browse files Browse the repository at this point in the history
feat(delivery): link to delivery notes list view from delivery trip
  • Loading branch information
s-aga-r authored Oct 26, 2023
2 parents 74b6bfb + 85488cd commit 35cf944
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions erpnext/stock/doctype/delivery_trip/delivery_trip.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ frappe.ui.form.on('Delivery Trip', {
})
}, __("Get stops from"));
}
frm.add_custom_button(__("Delivery Notes"), function () {
frappe.set_route("List", "Delivery Note",
{'name': ["in", frm.doc.delivery_stops.map((stop) => {return stop.delivery_note;})]}
);
}, __("View"));
},

calculate_arrival_time: function (frm) {
Expand Down

0 comments on commit 35cf944

Please sign in to comment.