[FIX] mass_mailing: add background image options for masonry

The masonry snippet was recently imported from website into mass_mailing
but its background image options were omitted, making it impossible to
changes these images.

task-2824014

closes odoo/odoo#89690

X-original-commit: a226c26255dfabff2ac10ca3ec9b56d01feb0d7e
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
Antoine Guenet
2022-04-27 07:51:47 +02:00
parent 588cffa967
commit e9237ae800
2 changed files with 21 additions and 0 deletions
@@ -369,4 +369,19 @@ options.registry.DesignTab = options.Class.extend({
},
});
options.registry.Parallax = options.Class.extend({
//--------------------------------------------------------------------------
// Private
//--------------------------------------------------------------------------
/**
* @override
*/
async _computeWidgetVisibility(widgetName, params) {
// Parallax is not supported in emails.
return false;
},
});
});
@@ -476,6 +476,12 @@
data-color-prefix="bg-"/>
</div>
<!-- Allow changing background images in Masonry -->
<t t-call="web_editor.snippet_options_background_options">
<t t-set="selector" t-value="'.s_masonry_block .row > div'"/>
<t t-set="with_images" t-value="True"/>
</t>
<!-- COLOR | .s_three_columns | .s_comparisons -->
<div data-js="Box"
data-selector=".s_three_columns .row > div, .s_comparisons .row > div"