2e0077ccc7aa1d7d95b4fc3f7d710dd19484e4db
To reproduce: Video: https://drive.google.com/file/d/1bAh7KA_5UhhIrr-qF5A5gOVWhk3_9clj/view 1. Have multi-language website 2. Event with one ticket 3. Reload page and click the "Register" button -> in some cases there is a traceback `/event/great-reno-ballon-race-2/registration/new: Function declared as capable of handling request of type 'json' but called with a request of type 'http'` Reason of the issue: As the button "Register" in the form is defined with `type="submit"` it will send the form as plain HTTP if clicked. This behavior is modified in the JavaScript to prevent this default behavior. However, if the button is clicked before the JS load, the HTTP behavior is used which does create the above traceback (as the `registration/new` route accept only `json` type). Solution proposed: Prevent the button default behavior and make it deactivated and let the JS activate it when it is ready Note on stability: As JS code and XML view is modified, this fix was thought so that the JS won't have an impact if the view isn't updated. There is theoretically no way that the XML view would be updated without the JS being updated (except manual modification in the view or rollback on the version revision after performing a module update on odoo.sh). If it was the case then the button will be deactivated until the user change the number of ticket. OPW-2946706 closes odoo/odoo#101311 X-original-commit: 5a8892497e2b0df5e1dc8085214687786954c878 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Signed-off-by: Sens Loan (lse) <lse@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%