From e4fd49e9910a5ee51242e79638c130f6dd226f99 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Tue, 14 Oct 2025 13:02:56 +0530 Subject: [PATCH] fix: performance issue by adding index (cherry picked from commit 1afc75b15a72d3ea20da66cb0a572af2215eb6fb) # Conflicts: # erpnext/accounts/doctype/purchase_invoice_item/purchase_invoice_item.json # erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json --- .../purchase_invoice_item/purchase_invoice_item.json | 9 +++++++-- .../purchase_receipt_item/purchase_receipt_item.json | 12 +++++++++--- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/erpnext/accounts/doctype/purchase_invoice_item/purchase_invoice_item.json b/erpnext/accounts/doctype/purchase_invoice_item/purchase_invoice_item.json index 69d5da7b9a3..4db7d9efcd8 100644 --- a/erpnext/accounts/doctype/purchase_invoice_item/purchase_invoice_item.json +++ b/erpnext/accounts/doctype/purchase_invoice_item/purchase_invoice_item.json @@ -912,7 +912,8 @@ "label": "Rejected Serial and Batch Bundle", "no_copy": 1, "options": "Serial and Batch Bundle", - "print_hide": 1 + "print_hide": 1, + "search_index": 1 }, { "fieldname": "wip_composite_asset", @@ -983,7 +984,11 @@ "idx": 1, "istable": 1, "links": [], +<<<<<<< HEAD "modified": "2025-03-12 16:33:13.453290", +======= + "modified": "2025-10-14 13:00:54.441511", +>>>>>>> 1afc75b15a (fix: performance issue by adding index) "modified_by": "Administrator", "module": "Accounts", "name": "Purchase Invoice Item", @@ -993,4 +998,4 @@ "sort_field": "modified", "sort_order": "DESC", "states": [] -} \ No newline at end of file +} diff --git a/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json b/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json index 5f8a9b58e91..0747fba0035 100644 --- a/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json +++ b/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json @@ -778,7 +778,8 @@ "fieldtype": "Data", "hidden": 1, "label": "Material Request Item", - "read_only": 1 + "read_only": 1, + "search_index": 1 }, { "fieldname": "expense_account", @@ -1038,7 +1039,8 @@ "fieldtype": "Link", "label": "Rejected Serial and Batch Bundle", "no_copy": 1, - "options": "Serial and Batch Bundle" + "options": "Serial and Batch Bundle", + "search_index": 1 }, { "depends_on": "eval:doc.use_serial_batch_fields === 0", @@ -1147,7 +1149,11 @@ "idx": 1, "istable": 1, "links": [], +<<<<<<< HEAD "modified": "2025-03-12 17:10:43.780622", +======= + "modified": "2025-10-14 12:58:20.384056", +>>>>>>> 1afc75b15a (fix: performance issue by adding index) "modified_by": "Administrator", "module": "Stock", "name": "Purchase Receipt Item", @@ -1158,4 +1164,4 @@ "sort_field": "modified", "sort_order": "DESC", "states": [] -} \ No newline at end of file +}