Skip to content

Commit

Permalink
fix(ux): stock levels take time after item merge
Browse files Browse the repository at this point in the history
Item merge creates a repost and depending on number of entries it can
take from 1 to n hours for it to finish. (depending upon queued up
reposts)

Added message so users don't feel confused till this operation is
finished.
  • Loading branch information
ankush committed Nov 1, 2021
1 parent f7ffe04 commit 1eab3a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpnext/stock/doctype/item/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,8 @@ def before_rename(self, old_name, new_name, merge=False):
def after_rename(self, old_name, new_name, merge):
if merge:
self.validate_duplicate_item_in_stock_reconciliation(old_name, new_name)
frappe.msgprint(_("It can take upto few hours for accurate stock values to be visible after merging items."),
indicator="orange", title="Note")

if self.route:
invalidate_cache_for_item(self)
Expand Down

0 comments on commit 1eab3a4

Please sign in to comment.