Skip to content

[FW][FIX] web: boolean widgets in list views - #42848

Closed
fw-bot wants to merge 1 commit into
odoo:masterfrom
odoo-dev:master-13.0-list-boolean-fix-jum-7uIb-fw
Closed

[FW][FIX] web: boolean widgets in list views#42848
fw-bot wants to merge 1 commit into
odoo:masterfrom
odoo-dev:master-13.0-list-boolean-fix-jum-7uIb-fw

Conversation

@fw-bot

@fw-bot fw-bot commented Jan 7, 2020

Copy link
Copy Markdown
Contributor

Before this commit, pointer events were prevented on all checkboxes in readonly
list views. That meant that the boolean_toggle widget for instance could not be
properly toggled in a non-editable list (which was the purpose of such a widget).

Now, pointer events are only disabled if the checkbox is not a widget field,
meaning that any widget applied to a boolean will delegate the handling of all
events to its widget.

This fix cannot be tested as the pointer-events property does not affect manual
event triggering.

Task 2154055

Forward-Port-Of: #42332

Before this commit, pointer events were prevented on all checkboxes in readonly
list views. That meant that the boolean_toggle widget for instance could not be
properly toggled in a non-editable list (which was the purpose of such a widget).

Now, pointer events are enabled only if the checkbox :
- is in a selected row AND does not have a readonly modifier
    OR
- has a widget applied on the field.

Also ensured that the field widgets in the list view multi edition confirmation
modal are not interactive.

We cannot test the `pointer-events` property interactions as it does not affect
manual event triggering used in tests.

Task 2154055

X-original-commit: c7ee164
@fw-bot

fw-bot commented Jan 7, 2020

Copy link
Copy Markdown
Contributor Author

Ping @Arcasias, @aab-odoo
This PR targets master and is the last of the forward-port chain containing:

To merge the full chain, say

@fw-bot r+

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

@robodoo robodoo added seen 🙂 forwardport This PR was created by @fw-bot labels Jan 7, 2020
@Arcasias

Arcasias commented Jan 7, 2020

Copy link
Copy Markdown

@fw-bot r+

@robodoo robodoo added the r+ 👌 label Jan 7, 2020
@C3POdoo C3POdoo added the RD research & development, internal work label Jan 7, 2020
@robodoo robodoo added the CI 🤖 Robodoo has seen passing statuses label Jan 7, 2020
robodoo pushed a commit that referenced this pull request Jan 7, 2020
Before this commit, pointer events were prevented on all checkboxes in readonly
list views. That meant that the boolean_toggle widget for instance could not be
properly toggled in a non-editable list (which was the purpose of such a widget).

Now, pointer events are enabled only if the checkbox :
- is in a selected row AND does not have a readonly modifier
    OR
- has a widget applied on the field.

Also ensured that the field widgets in the list view multi edition confirmation
modal are not interactive.

We cannot test the `pointer-events` property interactions as it does not affect
manual event triggering used in tests.

Task 2154055

closes #42848

X-original-commit: c7ee164
Signed-off-by: Julien Mougenot (JUM) <Arcasias@users.noreply.github.com>
@robodoo robodoo closed this Jan 7, 2020
@robodoo
robodoo temporarily deployed to merge January 7, 2020 13:43 Inactive
@fw-bot
fw-bot deleted the master-13.0-list-boolean-fix-jum-7uIb-fw branch January 21, 2020 13: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