Skip to content
Snippets Groups Projects
Commit 8b82f577 authored by Florian Damhaut's avatar Florian Damhaut
Browse files

[FIX] hr_holidays: Timeoff domain in view


Timeoff is apply in the view to take effect on every view type
instead of only the calendar.

closes odoo/odoo#91095

Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
parent 76385173
No related branches found
No related tags found
No related merge requests found
......@@ -12,15 +12,6 @@ odoo.define('hr_holidays.dashboard.view_custo', function(require) {
var _t = core._t;
var QWeb = core.qweb;
var TimeOffCalendarModel = CalendarModel.extend({
_getFilterDomain: function() {
const company_domain = [['user_id.company_id', 'in', this.data.context.allowed_company_ids]];
return this._super().concat(company_domain);
},
});
var TimeOffCalendarPopover = CalendarPopover.extend({
template: 'hr_holidays.calendar.popover',
......@@ -175,7 +166,6 @@ odoo.define('hr_holidays.dashboard.view_custo', function(require) {
config: _.extend({}, CalendarView.prototype.config, {
Controller: TimeOffCalendarController,
Renderer: TimeOffCalendarRenderer,
Model: TimeOffCalendarModel,
}),
});
......
......@@ -648,7 +648,7 @@
'search_default_managed_people': 1,
'hide_employee_name': 1}
</field>
<field name="domain">[]</field>
<field name="domain">[('employee_id.company_id', 'in', allowed_company_ids)]</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Meet the time off dashboard.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment