summaryrefslogtreecommitdiff
path: root/addons/website_form/static/src/js/website_form.js
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2016-06-29 19:46:25 +0200
committerJeremy Kersten <jke@odoo.com>2016-07-04 15:48:15 +0200
commite4a317a17698df842e4cbdbf094a38b774f28941 (patch)
tree9a96e20419e11a3104429f6f1afcc4fd57078b98 /addons/website_form/static/src/js/website_form.js
parentbb7bfd7382470f37ec854fbd9eaef4d3cc121706 (diff)
[ADD] website_sale: checkout process
Change checkout process. - Billing address is always the connected partner_id or neww partner_id. - Shipping address is contact of current commercial_partner_id - New checkout design for address selection - Add delete a line in my cart - Fix input quantity size - Refactor/Reindent xml template from website_sale - Improve the modularity for checkout (preprocess, posprocess, required fields, ...) - Allow to use form builder in extra step for OEE (No edit mode) - Add route to have states according country selected (need to be overridable for website_sale_delivery) - ...
Diffstat (limited to 'addons/website_form/static/src/js/website_form.js')
-rw-r--r--addons/website_form/static/src/js/website_form.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_form/static/src/js/website_form.js b/addons/website_form/static/src/js/website_form.js
index ad5dcaa5cb7..001bc5e44c0 100644
--- a/addons/website_form/static/src/js/website_form.js
+++ b/addons/website_form/static/src/js/website_form.js
@@ -100,7 +100,7 @@ odoo.define('website_form.animation', function (require) {
}
// Post form and handle result
- ajax.post(this.$target.attr('action') + this.$target.data('model_name'), form_values)
+ ajax.post(this.$target.attr('action') + (this.$target.data('force_action')||this.$target.data('model_name')), form_values)
.then(function(result_data) {
result_data = $.parseJSON(result_data);
if(!result_data.id) {