Skip to content

Commit

Permalink
feat(delivery): link to delivery notes list view from delivery trip (…
Browse files Browse the repository at this point in the history
…backport #37604) (#37695)

feat(delivery): link to delivery notes list view from delivery trip

(cherry picked from commit 85488cd)

Co-authored-by: David Arnold <[email protected]>
  • Loading branch information
mergify[bot] and blaggacao authored Oct 26, 2023
1 parent e96d5b3 commit c58fefb
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 c58fefb

Please sign in to comment.