*: website_crm, website_form_project, website_hr_recruitment, website_mass_mailing, website_sale Prior to this commit, modules that add elements (fields, references, etc.) to the website_form registry, would do so inside the `website.assets_editor` bundle. It creates a module dependency error since [1] + [2]: The form options (`s_website_form/options.js`) defined in `website.assets_wysiwyg` requires the registry defined in `website.assets_editor`. But since [1] and [2], the `website.assets_wysiwyg` bundle is loaded inside the iframe without `website.assets_editor`, as only `website.assets_wysiwyg` is needed to properly display and interact with the editor. (Although, most of the bundle is not necessary and a later IMP will either only load the CSS needed or split the bundle). This commit moves the modules that creates the registry as well as modules that extend it to the `website.assets_wysiwyg` bundle, fixing the dependency error. Though they are not required inside the iframe, the bundle can now be loaded without the need of assets_editor, removing the missing dependencies. But mainly, this should have been the case since the introduction of website.assets_wysiwyg at [3] anyway: we want to lazy load everything that is editor related. Although it was [4] which mixed the form editor files between the `website.assets_editor` and `website.assets_wysiwyg` bundles. [1]: https://github.com/odoo/odoo/commit/03c552690b15cbf2e7d6b7812386ac64042219af [2]: https://github.com/odoo/odoo/commit/a154ee7ad6fd3ebdd38943e1439badae11c3151d [3]: https://github.com/odoo/enterprise/commit/19a144d6af2974e964c6487170e6bca1b14d3898 [4]: https://github.com/odoo/odoo/commit/f8882698e8f4d1a3ad081522778344e2bd7aa0de closes odoo/odoo#110811 Related: odoo/enterprise#36195 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com> Co-authored-by: qsm-odoo <qsm@odoo.com>
38 lines
1.5 KiB
Python
38 lines
1.5 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': [
|
|
'data/ir_model_data.xml',
|
|
'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_mass_mailing/static/src/xml/*.xml',
|
|
],
|
|
'website.assets_wysiwyg': [
|
|
'website_mass_mailing/static/src/js/website_mass_mailing.editor.js',
|
|
'website_mass_mailing/static/src/js/mass_mailing_form_editor.js',
|
|
'website_mass_mailing/static/src/scss/website_mass_mailing_edit_mode.scss',
|
|
'website_mass_mailing/static/src/snippets/s_popup/options.js',
|
|
],
|
|
'web.assets_tests': [
|
|
'website_mass_mailing/static/tests/**/*',
|
|
],
|
|
},
|
|
'license': 'LGPL-3',
|
|
}
|