Skip to content

Commit

Permalink
fix(patch): Ensure SLE indexes (#46131)
Browse files Browse the repository at this point in the history
Because of the way this change was pushed in parts, some sites don't see
this as "update" and don't have the new indexes.
  • Loading branch information
ankush authored Feb 25, 2025
1 parent 8284efd commit f62aa8f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -400,4 +400,5 @@ erpnext.patches.v15_0.migrate_checkbox_to_select_for_reconciliation_effect
erpnext.patches.v15_0.sync_auto_reconcile_config
execute:frappe.db.set_single_value("Accounts Settings", "exchange_gain_loss_posting_date", "Payment")
erpnext.patches.v14_0.disable_add_row_in_gross_profit
erpnext.patches.v14_0.update_posting_datetime
erpnext.patches.v14_0.update_posting_datetime
erpnext.stock.doctype.stock_ledger_entry.patches.ensure_sle_indexes
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from erpnext.stock.doctype.stock_ledger_entry.stock_ledger_entry import (
on_doctype_update as create_sle_indexes,
)


def execute():
"""Ensure SLE Indexes"""

create_sle_indexes()

0 comments on commit f62aa8f

Please sign in to comment.