Skip to content

[FW][FIX] web: reload search panel before view model - #54040

Closed
fw-bot wants to merge 2 commits into
odoo:masterfrom
odoo-dev:master-saas-13.4-search-panel-fix-dam-9gmI-fw
Closed

[FW][FIX] web: reload search panel before view model#54040
fw-bot wants to merge 2 commits into
odoo:masterfrom
odoo-dev:master-saas-13.4-search-panel-fix-dam-9gmI-fw

Conversation

@fw-bot

@fw-bot fw-bot commented Jul 3, 2020

Copy link
Copy Markdown
Contributor

Forward-Port-Of: #53970

Problem:

Go to the application apps, select accounting in the search panel,
then filter on lunch in the search bar: the category all is displayed
as selected in the search panel (accounting is no more a valid value
since expand="0") but the application lunch does not appear in the
kanban view.

Root cause:

The kanban model is reloaded with the old domain using accounting
without waiting the search panel to be reloaded but it is only known
after the search panel has been reloaded that the accounting value is no
more valid and that all should be selected instead of accounting, thus
that the domain used by the kanban model should be updated.

Solution:

The solution to the problem is simple: first reload the search panel,
then reload the view model with the updated domain.

X-original-commit: 8589bab
In the search panel, the categories, i.e. fields select="one",
with attributes expand="0", and enable_counters="0" (defaults) were not
correctly updated when the domain outside of the search panel was
updated. This is no longer the case.

X-original-commit: 99e9cac
@robodoo robodoo added forwardport This PR was created by @fw-bot seen 🙂 labels Jul 3, 2020
@fw-bot

fw-bot commented Jul 3, 2020

Copy link
Copy Markdown
Contributor Author

Ping @Polymorphe57, @aab-odoo
This PR targets master and is the last of the forward-port chain.

To merge the full chain, say

@fw-bot r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@aab-odoo

aab-odoo commented Jul 3, 2020

Copy link
Copy Markdown
Contributor

@fw-bot r+

@robodoo robodoo added r+ 👌 CI 🤖 Robodoo has seen passing statuses labels Jul 3, 2020
@robodoo

robodoo commented Jul 3, 2020

Copy link
Copy Markdown
Contributor

Linked pull request(s) odoo/enterprise#11642 not ready. Linked PRs are not staged until all of them are ready.

@C3POdoo C3POdoo added the RD research & development, internal work label Jul 3, 2020
robodoo pushed a commit that referenced this pull request Jul 3, 2020
In the search panel, the categories, i.e. fields select="one",
with attributes expand="0", and enable_counters="0" (defaults) were not
correctly updated when the domain outside of the search panel was
updated. This is no longer the case.

closes #54040

X-original-commit: 99e9cac
Related: odoo/enterprise#11642
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
@robodoo robodoo closed this Jul 3, 2020
@robodoo
robodoo temporarily deployed to merge July 3, 2020 12:55 Inactive
@fw-bot
fw-bot deleted the master-saas-13.4-search-panel-fix-dam-9gmI-fw branch July 17, 2020 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI 🤖 Robodoo has seen passing statuses forwardport This PR was created by @fw-bot RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants