Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX #2181

Open
nabilragab opened this issue Feb 25, 2024 · 2 comments
Open

BUGFIX #2181

nabilragab opened this issue Feb 25, 2024 · 2 comments

Comments

@nabilragab
Copy link
Member

return super()._name_search(

change the args to the below
@api.model
def _name_search(
self, name="", domain=None, operator="ilike", limit=100, order=None
):
if name:
domain = [("name", operator, name.split(" / ")[-1])] + list(domain or [])
return super()._name_search(
name=name,
domain=domain,
operator=operator,
limit=limit,
order=order,
)

@legalsylvain
Copy link
Contributor

Could you make a Pull Request ? Thanks

@nabilragab
Copy link
Member Author

@legalsylvain i did, you rejected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants