[FIX] hr_holidays: remove stress days for access rights test

The access rights tests would fail on databases created on day 0 and
test executed on day 1 because of the stress day demo data, they would
overlap.

Testing for stress days' access rights are done in dedicated tests, thus
it's ok to delete all the existing ones here.

closes odoo/odoo#112312

X-original-commit: 3a2fd05026c0b0ae7fb852f59d1a74f0fc3db3b2
Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
Kevin Baptiste
2023-02-09 19:06:54 +01:00
parent a30978b30f
commit e6ad80b280
@@ -70,6 +70,10 @@ class TestHrHolidaysAccessRightsCommon(TestHrHolidaysCommon):
cls.lt_validation_both
]
# Here we only test access rights, prevent any conflict with
# existing stress days - they are tested someplace else.
cls.env['hr.leave.stress.day'].search([]).unlink()
def request_leave(self, user_id, date_from, number_of_days, values=None):
values = dict(values or {}, **{
'date_from': date_from,