mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 23:12:13 +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 (
|
if (
|
||||||
frm.doc.__onload &&
|
frm.doc.__onload &&
|
||||||
frm.doc.__onload.has_unreserved_stock &&
|
frm.doc.__onload.has_unreserved_stock &&
|
||||||
flt(frm.doc.per_picked) === 0 &&
|
flt(frm.doc.per_picked) === 0
|
||||||
frappe.model.can_create("Stock Reservation Entry")
|
|
||||||
) {
|
) {
|
||||||
frm.add_custom_button(
|
frm.add_custom_button(
|
||||||
__("Reserve"),
|
__("Reserve"),
|
||||||
|
|||||||
Reference in New Issue
Block a user