diff options
| author | Nasreddin (bon) <bon@odoo.com> | 2021-04-23 00:39:21 +0000 |
|---|---|---|
| committer | Nasreddin Boulif (bon) <bon@odoo.com> | 2021-05-17 07:30:17 +0000 |
| commit | aa1e071191c90f8d67234aceb6adf009ccbcd2b1 (patch) | |
| tree | 0a0a542ff4b008812f247eb4870f442771752c4d /addons/website_google_map/__init__.py | |
| parent | 74116c982a5ddef65a05ef90017ac4ce63bdf58f (diff) | |
[FIX] payment: enable pay button when clicking back button
Issue
Use Safari (or equivalent) browser
- Install e-commerce
- Go to Website -> Configuration -> Payment Acquirers
- Activate Ingenico in test mode
(write aaa in required fields)
- Go to shop, and add product to card
- Go to checkout
- Select Ingenico payment mode
- Click on Pay button
- When on the ingenico page, press back
The page is blocked and the button is disabled.
Cause
When clicking on Pay button, the page is locked and
the button is disabled.
With Chrome, when coming back to previous page,
this one is regenerated and therefore adapt the button.
In Safari, it is not the case.
Solution
On `pageshow` event, if event have `persisted` attribute set to
to true, meaning using cache, then reload page.
Fixes https://github.com/odoo/odoo/issues/69453
opw-2510281
closes odoo/odoo#70834
X-original-commit: f2eb6d3ce8b31d3f14f45482060d4ef5c362e7c3
Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.com>
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>
Diffstat (limited to 'addons/website_google_map/__init__.py')
0 files changed, 0 insertions, 0 deletions
