As of this commit, only confirmed leaves will be considered when computing the current leave or absence of an employee. Additionally, a bug in the is_absent search implementation was fixed: before this commit, the same results were returned for absent and non-absent searches. opw-2877328 closes odoo/odoo#124968 X-original-commit: 28ccbbab07a0c25570ca9b940428b8e541d262d7 Signed-off-by: Kevin Baptiste <kba@odoo.com>