fix: add in some indices to speed up Purchase Order deletion

`tabSales Order`.`inter_company_order_reference`
`tabSales Invoice Item`.`purchase_order`

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
(cherry picked from commit 0303d7dbdc)

# Conflicts:
#	erpnext/accounts/doctype/sales_invoice_item/sales_invoice_item.json
#	erpnext/selling/doctype/sales_order/sales_order.json
This commit is contained in:
Akhil Narang
2024-05-23 16:36:41 +05:30
committed by akhilnarang
parent dcffb3886b
commit c16c41ee59
2 changed files with 12 additions and 2 deletions

View File

@@ -867,7 +867,8 @@
"label": "Purchase Order",
"options": "Purchase Order",
"print_hide": 1,
"read_only": 1
"read_only": 1,
"search_index": 1
},
{
"fieldname": "column_break_92",
@@ -892,7 +893,11 @@
"idx": 1,
"istable": 1,
"links": [],
<<<<<<< HEAD
"modified": "2023-11-14 18:34:10.479329",
=======
"modified": "2024-05-23 16:36:18.970862",
>>>>>>> 0303d7dbdc (fix: add in some indices to speed up Purchase Order deletion)
"modified_by": "Administrator",
"module": "Accounts",
"name": "Sales Invoice Item",

View File

@@ -1138,7 +1138,8 @@
"hide_seconds": 1,
"label": "Inter Company Order Reference",
"options": "Purchase Order",
"read_only": 1
"read_only": 1,
"search_index": 1
},
{
"fieldname": "project",
@@ -1631,7 +1632,11 @@
"idx": 105,
"is_submittable": 1,
"links": [],
<<<<<<< HEAD
"modified": "2024-03-20 16:04:43.627183",
=======
"modified": "2024-05-23 16:35:54.905804",
>>>>>>> 0303d7dbdc (fix: add in some indices to speed up Purchase Order deletion)
"modified_by": "Administrator",
"module": "Selling",
"name": "Sales Order",