[fix] add index on so_detail in Delivery Note Item
This commit is contained in:
parent
574415b59b
commit
4096603656
@ -6,6 +6,8 @@ import frappe
|
|||||||
from erpnext.stock.stock_balance import update_bin_qty, get_reserved_qty
|
from erpnext.stock.stock_balance import update_bin_qty, get_reserved_qty
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
|
frappe.reload_doctype("Sales Order Item")
|
||||||
|
|
||||||
repost_for = frappe.db.sql("""
|
repost_for = frappe.db.sql("""
|
||||||
select
|
select
|
||||||
distinct item_code, warehouse
|
distinct item_code, warehouse
|
||||||
|
@ -1170,7 +1170,7 @@
|
|||||||
"read_only": 1,
|
"read_only": 1,
|
||||||
"report_hide": 0,
|
"report_hide": 0,
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"search_index": 0,
|
"search_index": 1,
|
||||||
"set_only_once": 0,
|
"set_only_once": 0,
|
||||||
"unique": 0,
|
"unique": 0,
|
||||||
"width": "150px"
|
"width": "150px"
|
||||||
@ -1286,7 +1286,7 @@
|
|||||||
"issingle": 0,
|
"issingle": 0,
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"max_attachments": 0,
|
"max_attachments": 0,
|
||||||
"modified": "2016-01-06 02:22:36.503315",
|
"modified": "2016-01-07 05:59:56.448357",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Stock",
|
"module": "Stock",
|
||||||
"name": "Delivery Note Item",
|
"name": "Delivery Note Item",
|
||||||
|
Loading…
Reference in New Issue
Block a user