From 51a006673cce6d4e45fc4a4437ff93a4a2522522 Mon Sep 17 00:00:00 2001 From: Benoit Socias Date: Thu, 20 Oct 2022 08:46:05 +0000 Subject: [PATCH] [FIX] website_sale: restore visibility on products snippet Since [1] the visibility options were removed from the products snippet. This commit restores the visibility options. Steps to reproduce: - Drop a products snippet. - Select it. => The visibility options were not shown. [1]: https://github.com/odoo/odoo/commit/57a1776c3695b1fec6ffa0b6ec3de59518b8a0a9 task-2930503 X-original-commit: 47172c76f8020abdab2a7bd7bdfece6760b8316f Part-of: odoo/odoo#103637 --- .../static/src/js/website_sale.editor.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/addons/website_sale/static/src/js/website_sale.editor.js b/addons/website_sale/static/src/js/website_sale.editor.js index 45a2f8623b4..33b491745ee 100644 --- a/addons/website_sale/static/src/js/website_sale.editor.js +++ b/addons/website_sale/static/src/js/website_sale.editor.js @@ -928,22 +928,6 @@ options.registry.WebsiteSaleProductAttribute = options.Class.extend({ }, }); -// Disable "Shown on Mobile/Desktop" option if for dynamic product snippets -options.registry.DeviceVisibility.include({ - - //-------------------------------------------------------------------------- - // Private - //-------------------------------------------------------------------------- - - /** - * @override - */ - async _computeVisibility() { - return await this._super(...arguments) - && !this.$target.hasClass('s_dynamic_snippet_products'); - }, -}); - // Disable save for alternative products snippet options.registry.SnippetSave.include({ /**