fix(stock settings): Allowed any number in stock frozen upto days field (#41736)

This commit is contained in:
Nabin Hait
2024-06-03 18:34:57 +05:30
committed by GitHub
parent 9a3569ff15
commit 740c495014

View File

@@ -84,14 +84,6 @@ class StockSettings(Document):
make_mandatory=0,
)
stock_frozen_limit = 356
submitted_stock_frozen = self.stock_frozen_upto_days or 0
if submitted_stock_frozen > stock_frozen_limit:
self.stock_frozen_upto_days = stock_frozen_limit
frappe.msgprint(
_("`Freeze Stocks Older Than` should be smaller than %d days.") % stock_frozen_limit
)
# show/hide barcode field
for name in ["barcode", "barcodes", "scan_barcode"]:
frappe.make_property_setter(