feat(delivery): link to delivery notes list view from delivery trip (cherry picked from commit 85488cd0dcac2efe02478ced44349a0cadb3b064) Co-authored-by: David Arnold <dgx.arnold@gmail.com>
This commit is contained in:
parent
40443258cf
commit
08ea62f4e4
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user