[IMP] website_sale: checkout - remove deprecated functions

closes odoo/odoo#67662

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
This commit is contained in:
Jeremy Kersten
2021-03-11 11:09:36 +00:00
parent 6ffed37585
commit 82e80ee22e
+2 -10
View File
@@ -531,16 +531,8 @@ class WebsiteSale(http.Controller):
}
return values
def _get_mandatory_billing_fields(self):
# deprecated for _get_mandatory_fields_billing which handle zip/state required
return ["name", "email", "street", "city", "country_id"]
def _get_mandatory_shipping_fields(self):
# deprecated for _get_mandatory_fields_shipping which handle zip/state required
return ["name", "street", "city", "country_id"]
def _get_mandatory_fields_billing(self, country_id=False):
req = self._get_mandatory_billing_fields()
req = ["name", "email", "street", "city", "country_id"]
if country_id:
country = request.env['res.country'].browse(country_id)
if country.state_required:
@@ -550,7 +542,7 @@ class WebsiteSale(http.Controller):
return req
def _get_mandatory_fields_shipping(self, country_id=False):
req = self._get_mandatory_shipping_fields()
req = ["name", "street", "city", "country_id"]
if country_id:
country = request.env['res.country'].browse(country_id)
if country.state_required: