mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 09:43:49 +00:00
perf: composite index for serial no
(cherry picked from commit 734d553338)
This commit is contained in:
committed by
Mergify
parent
88e305f5a2
commit
507a561922
@@ -234,8 +234,7 @@
|
|||||||
"in_list_view": 1,
|
"in_list_view": 1,
|
||||||
"label": "Warehouse",
|
"label": "Warehouse",
|
||||||
"options": "Warehouse",
|
"options": "Warehouse",
|
||||||
"read_only": 1,
|
"read_only": 1
|
||||||
"search_index": 1
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "batch_no",
|
"fieldname": "batch_no",
|
||||||
@@ -283,7 +282,7 @@
|
|||||||
"icon": "fa fa-barcode",
|
"icon": "fa fa-barcode",
|
||||||
"idx": 1,
|
"idx": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2025-12-24 14:30:43.599590",
|
"modified": "2025-12-24 20:14:52.942251",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Stock",
|
"module": "Stock",
|
||||||
"name": "Serial No",
|
"name": "Serial No",
|
||||||
|
|||||||
@@ -302,3 +302,7 @@ def get_serial_nos_for_outward(kwargs):
|
|||||||
return []
|
return []
|
||||||
|
|
||||||
return [d.serial_no for d in serial_nos]
|
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