Skip to content
Snippets Groups Projects
Commit 2c0b58c1 authored by jvm-odoo's avatar jvm-odoo
Browse files

[FIX] hr_holidays: fix no id to export when selecting all in tree view


Reproduce the issue

    - Install Time Off
    - Select all the lines
    - Action > Export

    The file has only columns but no data

Cause

    In `hr_leave_type.py` the `_search` method's limit is `False` when
    we select all the lines.

    In 04e85efb, we return the leaves ids with `[:limit]` so `[:False]`
    that always returns an empty array instead of `[:None]` that returns
    the full list.

This commit replaces the `[:limit]` by `[:limit or None]`

OPW-2126109

closes odoo/odoo#40539

Signed-off-by: default avatarJason Van Malder <jasonvanmalder@users.noreply.github.com>
parent 402228e4
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment