From 087333abcbe0bca99d49bd2fe88766a8e751e7be Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 13 Feb 2023 16:30:03 +0530 Subject: [PATCH] fix: Concurrency issues in Sales and Purchase returns (#34019) fix: Concurrency issues in Sales and Purchase returns (#34019) (cherry picked from commit a67284e96dabe71b76a373b5f1f3142dccf3952b) Co-authored-by: Deepesh Garg --- 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 8bd09982bf4..935796c7a71 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 ),