Commit [1] changed the way QWeb templates are loaded for public widgets, removing the xmlDependencies attribute. Most of the public widgets' templates were therefore defined in assets_wysiwyg. This is wrong however, as those assets are only loaded in specific situations. This commit removes the templates definitions from the assets_wysiwyg into specific records defined alongside the snippet templates. Steps to reproduce: - Drop the "Image Wall" snippet - Save - Visit as a public user (logged out) - Click on an image from the image wall - TB [1]: https://github.com/odoo/odoo/commit/f05adbc8b59c67cbec4847687a1ee07e620c2a7a task-2984724 closes odoo/odoo#100766 X-original-commit: 39dcd15833afc3860b9c4012a9a4c9da76844a07 Signed-off-by: Romain Derie (rde) <rde@odoo.com> Signed-off-by: Arthur Detroux (ard) <ard@odoo.com>
39 lines
1.1 KiB
Python
39 lines
1.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
{
|
|
'name': 'Website Payment',
|
|
'category': 'Hidden',
|
|
'summary': 'Payment integration with website',
|
|
'version': '1.0',
|
|
'description': """
|
|
This is a bridge module that adds multi-website support for payment providers.
|
|
""",
|
|
'depends': [
|
|
'website',
|
|
'account_payment',
|
|
'portal',
|
|
],
|
|
'data': [
|
|
'data/mail_templates.xml',
|
|
'data/mail_template_data.xml',
|
|
'data/ir_action_data.xml',
|
|
'views/payment_provider.xml',
|
|
'views/res_config_settings_views.xml',
|
|
'views/donation_templates.xml',
|
|
'views/snippets/snippets.xml',
|
|
'views/snippets/s_donation.xml',
|
|
],
|
|
'auto_install': True,
|
|
'assets': {
|
|
'website.assets_wysiwyg': [
|
|
'website_payment/static/src/snippets/s_donation/options.js',
|
|
'website_payment/static/src/snippets/s_donation/options.xml',
|
|
],
|
|
'web.assets_frontend': [
|
|
'website_payment/static/src/js/website_payment_donation.js',
|
|
'website_payment/static/src/js/website_payment_form.js',
|
|
],
|
|
},
|
|
'license': 'LGPL-3',
|
|
}
|