summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addons/payment/static/src/js/payment_form.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/payment/static/src/js/payment_form.js b/addons/payment/static/src/js/payment_form.js
index cee7bf982ef..e74dfe3ef2e 100644
--- a/addons/payment/static/src/js/payment_form.js
+++ b/addons/payment/static/src/js/payment_form.js
@@ -23,6 +23,11 @@ publicWidget.registry.PaymentForm = publicWidget.Widget.extend({
*/
start: function () {
this._adaptPayButton();
+ window.addEventListener('pageshow', function (event) {
+ if (event.persisted) {
+ window.location.reload();
+ }
+ });
var self = this;
return this._super.apply(this, arguments).then(function () {
self.options = _.extend(self.$el.data(), self.options);