feat(naming): Deferred naming for Stock Ledger Entry and GL Entry

For fast lockless insertions use hash as autonaming method for
temporarily naming Stock Ledger Entry and GL Entry

In an hourly run scheduled job rename these entries using autoname options
This commit is contained in:
Aditya Hase
2019-01-07 19:01:47 +05:30
parent fdd5d54d41
commit 7bc692d48d
6 changed files with 1760 additions and 1631 deletions

View File

@@ -235,7 +235,9 @@ scheduler_events = {
"hourly": [
'erpnext.hr.doctype.daily_work_summary_group.daily_work_summary_group.trigger_emails',
"erpnext.accounts.doctype.subscription.subscription.process_all",
"erpnext.erpnext_integrations.doctype.amazon_mws_settings.amazon_mws_settings.schedule_get_order_details"
"erpnext.erpnext_integrations.doctype.amazon_mws_settings.amazon_mws_settings.schedule_get_order_details",
"erpnext.accounts.doctype.gl_entry.gl_entry.rename_gle_sle_docs",
],
"daily": [
"erpnext.stock.reorder_item.reorder_item",