From a67284e96dabe71b76a373b5f1f3142dccf3952b Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Mon, 13 Feb 2023 15:31:19 +0530 Subject: [PATCH] fix: Concurrency issues in Sales and Purchase returns (#34019) --- erpnext/controllers/sales_and_purchase_return.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/controllers/sales_and_purchase_return.py b/erpnext/controllers/sales_and_purchase_return.py index 9fcb769bc8..fc6793a9bb 100644 --- a/erpnext/controllers/sales_and_purchase_return.py +++ b/erpnext/controllers/sales_and_purchase_return.py @@ -252,6 +252,7 @@ def get_already_returned_items(doc): child.parent = par.name and par.docstatus = 1 and par.is_return = 1 and par.return_against = %s group by item_code + for update """.format( column, doc.doctype, doc.doctype ),