Skip to content

[FW][FIX] web: handle empty notebooks in form views - #50006

Closed
fw-bot wants to merge 1 commit into
odoo:masterfrom
odoo-dev:master-saas-13.3-fix-empty-notebook-jum-qg-x-fw
Closed

[FW][FIX] web: handle empty notebooks in form views#50006
fw-bot wants to merge 1 commit into
odoo:masterfrom
odoo-dev:master-saas-13.3-fix-empty-notebook-jum-qg-x-fw

Conversation

@fw-bot

@fw-bot fw-bot commented Apr 22, 2020

Copy link
Copy Markdown
Contributor

Before this commit, when re-activating a previously active notebook tab, the form
renderer would assume that a tab was actually active. However this does not happen
if no tab is visible or defined and it results in a crash instead.

Now, if no active tab is found, a default active tab (0 = first) is set. This only
helps to prevent the crash and does not affect the current behaviour.

Forward-Port-Of: #49932

Before this commit, when re-activating a previously active notebook tab, the form
renderer would assume that a tab was actually active. However this does not happen
if no tab is visible or defined and it results in a crash instead.

Now, if no active tab is found, a default active tab (0 = first) is set. This only
helps to prevent the crash and does not affect the current behaviour.

X-original-commit: 73e0c0a
@robodoo robodoo added forwardport This PR was created by @fw-bot seen 🙂 labels Apr 22, 2020
@fw-bot

fw-bot commented Apr 22, 2020

Copy link
Copy Markdown
Contributor Author

Ping @Arcasias, @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

@Arcasias

Copy link
Copy Markdown

@fw-bot r+

@robodoo robodoo added r+ 👌 CI 🤖 Robodoo has seen passing statuses labels Apr 22, 2020
robodoo pushed a commit that referenced this pull request Apr 22, 2020
Before this commit, when re-activating a previously active notebook tab, the form
renderer would assume that a tab was actually active. However this does not happen
if no tab is visible or defined and it results in a crash instead.

Now, if no active tab is found, a default active tab (0 = first) is set. This only
helps to prevent the crash and does not affect the current behaviour.

closes #50006

X-original-commit: 73e0c0a
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Julien Mougenot (jum) <jum@odoo.com>
@C3POdoo C3POdoo added the RD research & development, internal work label Apr 22, 2020
@robodoo robodoo closed this Apr 22, 2020
@robodoo
robodoo temporarily deployed to merge April 22, 2020 16:28 Inactive
@fw-bot
fw-bot deleted the master-saas-13.3-fix-empty-notebook-jum-qg-x-fw branch May 6, 2020 16:46
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