PURPOSE Before this commit when confirming a registration on the frontend the form was directly sent to the controller and the user was redirected on the success page if no errors. After this commit an ajax call is made after validating the form and the success page is directly loaded from the response... there is no redirect anymore. This way of displaying the success page prevent using the link generated before by another user and getting private information about the booth's renter. Two more advantages are that it's easier to maintain and it's slightly faster than before since the whole page isn't reloaded. LINKS Task-2635461 PR : odoo/odoo#77081
36 lines
1.1 KiB
Python
36 lines
1.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
{
|
|
'name': 'Online Event Booths',
|
|
'category': 'Marketing/Events',
|
|
'version': '1.0',
|
|
'summary': 'Events, display your booths on your website',
|
|
'description': """
|
|
Display your booths on your website for the users to register.
|
|
""",
|
|
'depends': ['website_event', 'event_booth'],
|
|
'data': [
|
|
'security/ir.model.access.csv',
|
|
'security/event_booth_security.xml',
|
|
'views/event_type_views.xml',
|
|
'views/event_event_views.xml',
|
|
'views/event_booth_registration_templates.xml',
|
|
'views/event_booth_templates.xml',
|
|
],
|
|
'demo': [
|
|
'data/event_demo.xml',
|
|
],
|
|
'auto_install': True,
|
|
'assets': {
|
|
'web.assets_frontend': [
|
|
'/website_event_booth/static/src/js/booth_register.js',
|
|
'/website_event_booth/static/src/scss/website_event_booth.scss',
|
|
],
|
|
'web.assets_qweb': [
|
|
'website_event_booth/static/src/xml/event_booth_registration_templates.xml',
|
|
],
|
|
},
|
|
'license': 'LGPL-3',
|
|
}
|