From deb7b0dfc2afb3c72ef9c34bb27e4bd7d8fa5b25 Mon Sep 17 00:00:00 2001 From: "Touati Djamel (otd)" Date: Wed, 14 Jul 2021 12:58:00 +0000 Subject: [PATCH] [FIX] l10n_pe: add zip to Peru address format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Steps to reproduce the bug: - Install eCommerce and l10n_pe - Go as website visitor - Add anything to your cart - Continue with checkout to go to the address page - Select country Peru and fill in all the required fields - Validate - You will get an error message telling you that you forgot to fill in a required field. Problem: You cannot validate the address because zip code is not displayed, but required. This field is based on the country format address to be displayed before or after the `" City "` field and is not displayed if `" zip "` is not present in the country format address. https://github.com/odoo/odoo/blob/b1107cba38e296f17d03d9919be67e6789a407be/addons/website_sale/views/templates.xml#L1208-L1223 https://github.com/odoo/odoo/blob/15fe3d43b4b925a32b42eb46048a33987e10336b/openerp/addons/base/res/res_country.py#L77 Solution: "zip" is required for the Peru country, so it must be added in the address format opw-2600526 closes odoo/odoo#73763 X-original-commit: 996260c04a52055a7000ede7be87460707f3990f Signed-off-by: Jérémy Kersten (jke) Signed-off-by: Djamel Touati --- addons/l10n_pe/data/res_country_data.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/l10n_pe/data/res_country_data.xml b/addons/l10n_pe/data/res_country_data.xml index 4b6a12df565..adf36d8095f 100644 --- a/addons/l10n_pe/data/res_country_data.xml +++ b/addons/l10n_pe/data/res_country_data.xml @@ -32,7 +32,7 @@ - +