feat: add after_refresh hook to item dashboard (#33372)

* fix: return promise

* fix: use after_refresh hook instead of promise

# Because there is already a before_refresh hook. I think it makes sense to do the same for after.
This commit is contained in:
Devin Slauenwhite 2022-12-29 00:01:26 -05:00 committed by GitHub
parent e3a0ce5d63
commit 123920d0bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,6 +102,9 @@ erpnext.stock.ItemDashboard = class ItemDashboard {
args: args,
callback: function (r) {
me.render(r.message);
if(me.after_refresh) {
me.after_refresh();
}
}
});
}