Saturday, October 31, 2020
2 changes · master
Miscellaneous changes
The randint generator generated always `None` because the `return` was forget in method of `populate.compute`. - Add a test for the randint tool, and fix the issue. - Change the documentation of `_populate_factories` to be more explicit about the custom generator. Forward-Port-Of: odoo/odoo#60327
Original PR description
The randint generator generated always `None` because the `return` was forget in method of `populate.compute`. - Add a test for the randint tool, and fix the issue. - Change the documentation of `_populate_factories` to be more explicit about the custom generator. Forward-Port-Of: odoo/odoo#60327
Behavior prior to the commit: A user can double click the "Send" button when submitting a form on the website. Because the event handler is removed on the first click, the second submission uses the browser default behavior and posts the form to an incorrect URL, resulting in a 404 error for the user. Behavior after the commit: The button is disabled after the first click. Note: Using `.attr('disabled')` is sufficient both to disable the button and to give the disabled visual
Original PR description
Behavior prior to the commit:
A user can double click the "Send" button when submitting a form on the
website. Because the event handler is removed on the first click, the
second submission uses the browser default behavior and posts the form
to an incorrect URL, resulting in a 404 error for the user.
Behavior after the commit:
The button is disabled after the first click.
Note:
Using `.attr('disabled')` is sufficient both to disable the button and
to give the disabled visual on all browsers since IE9.
opw-2356402
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: odoo/odoo#60843
Forward-Port-Of: odoo/odoo#60700