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:
parent
e3a0ce5d63
commit
123920d0bc
@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user