From 82e80ee22ea06e805757e5897c2f7cca2ca1102f Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Thu, 11 Mar 2021 11:09:36 +0000 Subject: [PATCH] [IMP] website_sale: checkout - remove deprecated functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes odoo/odoo#67662 Signed-off-by: Jérémy Kersten (jke) --- addons/website_sale/controllers/main.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/addons/website_sale/controllers/main.py b/addons/website_sale/controllers/main.py index 6d5a20077e9..089d6eda02b 100644 --- a/addons/website_sale/controllers/main.py +++ b/addons/website_sale/controllers/main.py @@ -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: