Skip to content
Snippets Groups Projects
Commit ef90d8e1 authored by Victor Piryns (pivi)'s avatar Victor Piryns (pivi)
Browse files

[FIX] project: handle limit=None on tags `name_search`


Issue:
After 213b6885, some custom filters
on tags can throw a stacktrace.

Steps to reproduce:
- Install Project
- Project > Custom Filter > Tags contains 'Internal'
- Stacktrace

Cause:
When `limit=None`, which is explicitly set when creating custom
filters, the `name_search` crashes when comparing an `int` (the len
(ids)) with the limit which is `None`.

Fix:
Elaborate the condition to handle the case when `limit=None`.

Affected versions:
16.0 up to master

Reference:
opw-3510309

closes odoo/odoo#135761

Signed-off-by: default avatarAudric Onockx (auon) <auon@odoo.com>
parent da0bbea2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment