From 9cd1cae65f7972fde2e303ea96f44614d17b567b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Ku=CC=88hn?= Date: Wed, 29 Nov 2017 09:04:12 +0100 Subject: [PATCH] [FIX] odoo service: fix location of res_country_data.xml file It has been moved inside base/data, instead of base/res. We have to adapt code that is calling it. --- odoo/service/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/service/db.py b/odoo/service/db.py index 69f61736c95..ec15383bd4b 100644 --- a/odoo/service/db.py +++ b/odoo/service/db.py @@ -405,7 +405,7 @@ def exp_list_lang(): def exp_list_countries(): list_countries = [] - root = ET.parse(os.path.join(odoo.tools.config['root_path'], 'addons/base/res/res_country_data.xml')).getroot() + root = ET.parse(os.path.join(odoo.tools.config['root_path'], 'addons/base/data/res_country_data.xml')).getroot() for country in root.find('data').findall('record[@model="res.country"]'): name = country.find('field[@name="name"]').text code = country.find('field[@name="code"]').text