Skip to content

Commit

Permalink
fix: Stock Reservation Entry was not getting created (#42033)
Browse files Browse the repository at this point in the history
  • Loading branch information
Poorvi-R-Bhat authored Jun 25, 2024
1 parent 2e76b9f commit 1a9899b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions erpnext/selling/doctype/sales_order/sales_order.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ frappe.ui.form.on("Sales Order", {
if (
frm.doc.__onload &&
frm.doc.__onload.has_unreserved_stock &&
flt(frm.doc.per_picked) === 0 &&
frappe.model.can_create("Stock Reservation Entry")
flt(frm.doc.per_picked) === 0
) {
frm.add_custom_button(
__("Reserve"),
Expand Down

0 comments on commit 1a9899b

Please sign in to comment.