summaryrefslogtreecommitdiff
path: root/addons/website_quote/static/src
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2015-10-27 16:20:59 +0100
committerNicolas Martinelli <nim@odoo.com>2015-10-28 08:02:24 +0100
commitd9c2d03532ae078255fb8dc6d601a5decedbea62 (patch)
tree65bdb1ea43e7bc7dfe51b917ea9e2fc9662fe0cd /addons/website_quote/static/src
parent58be02b9276d2efb10866abcb6c3e6fa86d42ed4 (diff)
[FIX] website_quote: fix Sign & Confirm
Commit 7636b51 modifies the route from JSON to HTTP by mistake. Indeed, the route /quote/accept is called from an ajax.jsonRpc request, not from the `method="POST" t-attf-action="/quote/accept` which can be found in website_quotation.xml. The t-attf-action is actually only used to recover the order_id and the token in website_quotation.js. opw-652874 Closes #9227 Fixes #9226
Diffstat (limited to 'addons/website_quote/static/src')
-rw-r--r--addons/website_quote/static/src/js/website_quotation.js2
1 files changed, 1 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 88948908295..c43f3a2e7a6 100644
--- a/addons/website_quote/static/src/js/website_quotation.js
+++ b/addons/website_quote/static/src/js/website_quotation.js
@@ -64,7 +64,7 @@ if(!$('.o_website_quote').length) {
var self = this;
var href = self.$el.find('form').attr("action");
var action = href.match(/quote\/([a-z]+)/);
- var order_id = href.match(/quote\/[a-z]+\/([0-9]+)/);
+ var order_id = href.match(/order_id=(.*)&/);
var token = href.match(/token=(.*)/);
if (token){
token = token[1];