Skip to content
Snippets Groups Projects
Commit 7ace5a98 authored by Julien Mougenot's avatar Julien Mougenot
Browse files

[FIX] web,lunch: separate search panel domain


Before this commit, the SearchPanel widget was given a single unified domain coming
from the view/controller. The issue was that some modules injected additional leaves
in this domain and there was no way to remove them/separate them from the original
view/controller domain.

Now, another paramater (the `viewDomain`) is given to the SearchPanel, containing
the distinct domain related to the view. The Lunch module has been adapted to give
the `location` domain through this new key.

Note that some tests steps had to be inverted since the method retreiving the
domain of the view/controller is asynchronous (needed by Lunch to give time to the
model to be loaded). It mainly concerns the RPC order which does not matter in this
case.

Task 2239706

closes odoo/odoo#49720

X-original-commit: e895e553
Signed-off-by: default avatarJulien Mougenot (jum) <jum@odoo.com>
Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
parent b3149d84
No related branches found
No related tags found
Loading
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