Browse Source

Modif adresse

12.0
Juliana 4 years ago
parent
commit
a636b4fbeb
  1. 2
      controllers/__init__.py
  2. 6
      controllers/main.py
  3. 3
      views/templates.xml

2
controllers/__init__.py

@ -1,4 +1,4 @@
# © 2019 Le Filament (<http://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import main
# from . import main

6
controllers/main.py

@ -11,4 +11,8 @@ class VracoopWebsiteSale(WebsiteSale):
def _get_mandatory_billing_fields(self):
res = super(VracoopWebsiteSale, self)._get_mandatory_billing_fields()
return ["name", "email", "phone"]
return ["name", "email", "phone"]
def _get_mandatory_shipping_fields(self):
res = super(VracoopWebsiteSale, self)._get_mandatory_shipping_fields()
return ["name"]

3
views/templates.xml

@ -9,6 +9,9 @@
<span class='ship_to_other text-muted' style="display: none">&amp;nbsp;(<i>Votre adresse de livraison vous sera demandée plus tard) </i></span>
</label>
</div>
<div t-else="" class="checkbox">
<input type="hidden" id='shipping_use_same' class="mr8" name='use_same' value="1" checked='checked'/>
</div>
</xpath>
<xpath expr="//select[@id='country_id']" position="replace">

Loading…
Cancel
Save