Skip to content

Commit

Permalink
fix: Stock Reservation Entry was not getting created (backport #42033) (
Browse files Browse the repository at this point in the history
#42035)

fix: Stock Reservation Entry was not getting created (#42033)

(cherry picked from commit 1a9899b)

Co-authored-by: Poorvi-R-Bhat <poorvi.r.bhat@gmail.com>
  • Loading branch information
mergify[bot] and Poorvi-R-Bhat authored Jun 26, 2024
1 parent 068de08 commit e278fc6
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 e278fc6

Please sign in to comment.