Skip to content
Snippets Groups Projects
  • Tom De Caluwé's avatar
    86a99af1
    [FIX] hr_holidays: make test_current_leave_status deterministic · 86a99af1
    Tom De Caluwé authored
    
    The test_current_leave_status checks the correct implementation of different
    hr.leave computed fields. To do this, a leave is created, during the test. The
    test fails however, when the employee is not supposed to work during the leave
    period, which can happen when running the test on certain days. The test is
    made deterministic again by adding the number_of_days field to the dict. As
    this is a stored field, the created leave entry will be considered valid.
    
    closes odoo/odoo#122826
    
    X-original-commit: a1dffd3f
    Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
    86a99af1
    History
    [FIX] hr_holidays: make test_current_leave_status deterministic
    Tom De Caluwé authored
    
    The test_current_leave_status checks the correct implementation of different
    hr.leave computed fields. To do this, a leave is created, during the test. The
    test fails however, when the employee is not supposed to work during the leave
    period, which can happen when running the test on certain days. The test is
    made deterministic again by adding the number_of_days field to the dict. As
    this is a stored field, the created leave entry will be considered valid.
    
    closes odoo/odoo#122826
    
    X-original-commit: a1dffd3f
    Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
test_leave_requests.py 44.61 KiB