From 9c108a8ef70ec6f440cddeccc640c363bcf02196 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 7 Aug 2023 21:03:36 +0530 Subject: [PATCH] fix: enqueue submit/cancel action for stock entry having more than 50 line items (backport #36532) (#36536) fix: enqueue submit/cancel action for stock entry having more than 50 line items (#36532) (cherry picked from commit ecba6ee1833343d57de15ca546da87e140ab8a55) Co-authored-by: s-aga-r --- erpnext/stock/doctype/stock_entry/stock_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py index b93ffc437cb5..9560b52f59c7 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -194,7 +194,7 @@ def is_enqueue_action(self, force=False) -> bool: return False # If line items are more than 100 or record is older than 6 months - if len(self.items) > 100 or month_diff(nowdate(), self.posting_date) > 6: + if len(self.items) > 50 or month_diff(nowdate(), self.posting_date) > 6: return True return False