mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-16 08:47:33 +00:00
fix: Stock Reservation Entry was not getting created (#42033)
(cherry picked from commit 1a9899b32b)
Co-authored-by: Poorvi-R-Bhat <poorvi.r.bhat@gmail.com>
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user