summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLofbergValentin <lofbergvalentin@gmail.com>2018-05-23 11:52:02 +0200
committerJeremy Kersten <jke@odoo.com>2018-05-24 09:32:17 +0200
commit80c03bcd7280302fefebcf43d84801fac17832d4 (patch)
tree554f44114a449f9aeb3a763b1a459f99ff576abb
parent2bc6ea1b378bc8a660219b0502c93118f0bb1b6a (diff)
[FIX] website_sale: fix the missing action on checkout form
Remove wrong attr name '/shop/checkout' and add the action '/shop/address'. It allow others routes to render the form, and that the submit form is handled by the default checkout process. Todo: make this 'action url' as an argument
-rw-r--r--addons/website_sale/views/templates.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml
index 5d1e6a8c833..385234ad9ea 100644
--- a/addons/website_sale/views/templates.xml
+++ b/addons/website_sale/views/templates.xml
@@ -1141,7 +1141,7 @@
<t t-if="error" t-foreach="error.get('error_message', [])" t-as="err">
<h4 class="text-danger" t-esc="err" />
</t>
- <form name="/shop/checkout" method="post" class="checkout_autoformat">
+ <form action="/shop/address" method="post" class="checkout_autoformat">
<div t-attf-class="form-group #{error.get('name') and 'has-error' or ''} col-md-12 div_name">
<label class="control-label" for="name">Name</label>
<input type="text" name="name" class="form-control" t-att-value="'name' in checkout and checkout['name']" />