mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-14 10:13:57 +00:00
Merge pull request #51322 from rohitwaghchaure/composite-index-for-serial-no
perf: composite index for serial no
This commit is contained in:
@@ -238,8 +238,7 @@
|
||||
"in_list_view": 1,
|
||||
"label": "Warehouse",
|
||||
"options": "Warehouse",
|
||||
"read_only": 1,
|
||||
"search_index": 1
|
||||
"read_only": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "batch_no",
|
||||
@@ -313,7 +312,7 @@
|
||||
"icon": "fa fa-barcode",
|
||||
"idx": 1,
|
||||
"links": [],
|
||||
"modified": "2025-12-24 14:30:43.599590",
|
||||
"modified": "2025-12-24 20:14:52.942251",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Stock",
|
||||
"name": "Serial No",
|
||||
|
||||
@@ -304,3 +304,7 @@ def get_serial_nos_for_outward(kwargs):
|
||||
return []
|
||||
|
||||
return [d.serial_no for d in serial_nos]
|
||||
|
||||
|
||||
def on_doctype_update():
|
||||
frappe.db.add_index("Serial No", ["item_code", "warehouse"])
|
||||
|
||||
Reference in New Issue
Block a user