Files
odoo_source/addons/website_mass_mailing/__manifest__.py
T
Guillaume (gdi) a9eae10af8 [FIX] website_mass_mailing: hide newsletter thanks btn before saving
Before this commit the "Thanks" button of the newsletter block could be
saved as visible. This meant that a visitor who did not subscribe to the
newsletter would see the "Thanks" button on loading before it
disappeared. This commit solves this problem by:
1. hiding the "Thanks" button before saving
2. having an option to show/hide the "Thanks" button in edit mode
3. hiding the "Thanks" button before switching to edit mode

Steps to reproduce the fixed bug:
 - Drop a newsletter block.
 - Save and register to the newsletter.
 - Edit
 - Change anything in the newsletter block.
 - Save and Logout.
 - Now the Thanks button appears and disappears when the page is loaded

opw-2802139

closes odoo/odoo#94002

X-original-commit: 57793ff912ac5aab8f3d3e014992965d06290bf0
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-06-18 12:42:37 +02:00

37 lines
1.3 KiB
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Newsletter Subscribe Button',
'summary': 'Attract visitors to subscribe to mailing lists',
'description': """
This module brings a new building block with a mailing list widget to drop on any page of your website.
On a simple click, your visitors can subscribe to mailing lists managed in the Email Marketing app.
""",
'version': '1.0',
'category': 'Website/Website',
'depends': ['website', 'mass_mailing', 'google_recaptcha'],
'data': [
'views/snippets/s_popup.xml',
'views/snippets_templates.xml',
],
'auto_install': ['website', 'mass_mailing'],
'assets': {
'web.assets_frontend': [
'website_mass_mailing/static/src/scss/website_mass_mailing_popup.scss',
'website_mass_mailing/static/src/js/website_mass_mailing.js',
],
'website.assets_wysiwyg': [
'website_mass_mailing/static/src/js/website_mass_mailing.editor.js',
'website_mass_mailing/static/src/scss/website_mass_mailing_edit_mode.scss',
],
'web.assets_tests': [
'website_mass_mailing/static/tests/**/*',
],
'web.assets_qweb': [
'website_mass_mailing/static/src/xml/*.xml',
],
},
'license': 'LGPL-3',
}