summaryrefslogtreecommitdiff
path: root/addons/website_quote/static/src/js
diff options
context:
space:
mode:
authorDamien Bouvy <dbo@odoo.com>2016-03-23 14:38:21 +0100
committerDamien Bouvy <dbo@odoo.com>2016-03-23 16:38:57 +0100
commit7682760dcad232829fbb5d4221f66a1ebb9d6c91 (patch)
treecd629ddb5eae21baa9743b38864b92a83c64dc3b /addons/website_quote/static/src/js
parenta4f8464be7eecc90a2be4552a29742298abbe8bd (diff)
[FIX] website_sale,website_quote: form must be in dom to be submitted
Revision 15f27b2 introduced a dynamic form submission to avoid some payment transaction problems. It so happens that form submission in jquery necessitates said form to actually be in the dom (at least for Firefox and some version of MSIE); this revision ensures that the form is updated in the dom by the rpc call then properly submitted.
Diffstat (limited to 'addons/website_quote/static/src/js')
-rw-r--r--addons/website_quote/static/src/js/website_quotation.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/website_quote/static/src/js/website_quotation.js b/addons/website_quote/static/src/js/website_quotation.js
index 3221eeba0a4..2ff25986179 100644
--- a/addons/website_quote/static/src/js/website_quotation.js
+++ b/addons/website_quote/static/src/js/website_quotation.js
@@ -212,7 +212,8 @@ odoo.define('website_quote.payment_method', function (require) {
var token = href.match(/quote\/[0-9]+\/([^\/?]*)/);
token = token ? token[1] : '';
ajax.jsonRpc('/quote/' + order_id +'/transaction/' + acquirer_id + (token ? '/' + token : ''), 'call', {}).then(function (data) {
- $(data).submit();
+ $form.html(data);
+ $form.submit();
});
});
});