Skip to content

Commit b756dbd

Browse files
[FIX] hr_holidays: apply multicompany security to report
Steps to reproduce: - Install "Time Off" and `l10n_be` - "Time Off" -> "Reporting" -> "by Type" - Unselect the company with the time off Issues: All the time off will be shown, company selection will not be taken into account. This is due to a missing security rules. opw-3954393 closes odoo#168516 Signed-off-by: Bertrand Dossogne (bedo) <bedo@odoo.com>
1 parent c44aece commit b756dbd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

addons/hr_holidays/security/hr_holidays_security.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,12 @@
252252
<field name="domain_force">[('company_id', 'in', company_ids + [False])]</field>
253253
</record>
254254

255+
<record id="hr_leave_report_rule_multi_company" model="ir.rule">
256+
<field name="name">Time Off Report: multi company global rule</field>
257+
<field name="model_id" ref="model_hr_leave_report"/>
258+
<field name="domain_force">[('company_id', 'in', company_ids + [False])]</field>
259+
</record>
260+
255261
<record id="hr_leave_report_rule_group_user" model="ir.rule">
256262
<field name="name">Time Off Summary / Report: Internal User</field>
257263
<field name="model_id" ref="model_hr_leave_report"/>

0 commit comments

Comments
 (0)