odoo/odoo#143875

Created by fw-bot
Merged at 3fa6af39c97fd5d5f9081d358d44bf4ee1995a97

Statuses:

label
odoo-dev:17.0-16.0-fix_hidden_drop_backport-bso--YWl-fw
head
29ab8a00c99fcd09cb836ba7211bdb381b5cb7a3
merged
2 years ago by Website, Benoit Socias (bso)
odoo/odoo
16.0 #141389
saas-16.1 #143215
saas-16.2 #143227
saas-16.3 #143236
saas-16.4 #143640
17.0 #143875
18.0
saas-18.1
saas-18.2
saas-18.3
master #144316

[FW][FIX] web_editor: ignore device visibility upon snippet drop

This is a backport of #140505

Since 1 when device visibility became a visibility option, when dropping a snippet that contains device-invisible blocks, all those blocks were made visible.

This commit makes that behavior limited to blocks that are not device-invisible. (E.g. when dropping a popup)

Steps to reproduce:
- drop a Columns snippet
- hide a column on mobile
- hide a column on desktop
- save snippet
- drop saved snippet in either desktop or mobile preview

=> All columns were shown with the o_snippet_override_invisible effect on the conditional ones.

task-3538535

Forward-Port-Of: #143640
Forward-Port-Of: #141389