Skip to content
Snippets Groups Projects
Commit bad91907 authored by Lucas Lefèvre's avatar Lucas Lefèvre
Browse files

[FIX] hr_holidays: reload dashboard on new allocation

When a new allocation is requested from the leave dashboard,
the page is not reloaded. Therefore the displayed data is not
up to date with the new allocation count.

This commit makes the page reload after each new allocation.
parent 8e149728
Branches
Tags
No related merge requests found
......@@ -169,17 +169,18 @@ odoo.define('hr_holidays.dashboard.view_custo', function(require) {
* @private
*/
_onNewAllocation: function () {
var self = this;
this.do_action({
type: 'ir.actions.act_window',
res_model: 'hr.leave.allocation',
view_type: 'form',
views: [[false,'form']],
target: 'new',
}), {
}, {
on_close: function () {
self.reload();
}
};
});
},
});
var TimeOffCalendarView = CalendarView.extend({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment