diff --git a/header_search_panel/static/src/search/header_search/components/fields_filter/many2one_filter/many2one_filter.js b/header_search_panel/static/src/search/header_search/components/fields_filter/many2one_filter/many2one_filter.js
index 4db0404ab..071d04832 100644
--- a/header_search_panel/static/src/search/header_search/components/fields_filter/many2one_filter/many2one_filter.js
+++ b/header_search_panel/static/src/search/header_search/components/fields_filter/many2one_filter/many2one_filter.js
@@ -11,6 +11,7 @@ export class Many2oneFilter extends Component {
setup() {
super.setup();
this.rpc = useService("rpc");
+ this.user = useService("user");
this.activeValues = this.env.searchModel.headerSearchInfo.FieldsFilter[this.props.id]?.activeValues || [];
}
@@ -68,7 +69,11 @@ export class Many2oneFilter extends Component {
}
getDomain() {
- return new Domain(this.props.domain).toList({});
+ const evalContext = {
+ uid: this.user.context.uid,
+ allowed_company_ids: this.user.context.allowed_company_ids || [],
+ };
+ return new Domain(this.props.domain).toList(evalContext);
}
async update(value) {
diff --git a/yuthon_hr_attendance/views/yuthon_holiday_statement.xml b/yuthon_hr_attendance/views/yuthon_holiday_statement.xml
index 9b8f879ee..e401d74d3 100644
--- a/yuthon_hr_attendance/views/yuthon_holiday_statement.xml
+++ b/yuthon_hr_attendance/views/yuthon_holiday_statement.xml
@@ -46,15 +46,15 @@
hr.leave
-
-
+
+