Skip to content

Commit

Permalink
[FIX] website_sale: required fields
Browse files Browse the repository at this point in the history
- Go to eCommerce, add a product to the cart
- At address configuration, add a delivery address. Do not field the
  name or the phone

It is possible to save the address while the fields are mandatory.

opw-1827797
  • Loading branch information
nim-odoo committed Mar 20, 2018
1 parent 672a275 commit 2da8d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/website_sale/views/templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@
<input type="hidden" name="partner_id" t-att-value="partner_id or '0'" />
<input type="hidden" name="callback" t-att-value="callback" />
<!-- Example -->
<input type="hidden" name="field_required" t-att-value="mode[1] == 'billing' and 'phone,name' or ''" />
<input type="hidden" name="field_required" t-att-value="'phone,name'" />

<div class="clearfix"/>
<div style='padding: 0 15px'>
Expand Down

0 comments on commit 2da8d41

Please sign in to comment.