fix(stock): ignore delivery note on delivery trip on_cancel trigger (backport #54120) (#54123)

Co-authored-by: Sudharsanan Ashok <135326972+Sudharsanan11@users.noreply.github.com>
fix(stock): ignore delivery note on delivery trip on_cancel trigger (#54120)
This commit is contained in:
mergify[bot]
2026-04-08 17:18:35 +05:30
committed by GitHub
parent 0bdb7e7894
commit 864a7fdab5

View File

@@ -41,6 +41,8 @@ frappe.ui.form.on("Delivery Trip", {
},
refresh: function (frm) {
frm.ignore_doctypes_on_cancel_all = ["Delivery Note"];
if (frm.doc.docstatus == 1 && frm.doc.delivery_stops.length > 0) {
frm.add_custom_button(__("Notify Customers via Email"), function () {
frm.trigger("notify_customers");