[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.
This commit is contained in:
Alexandre Kühn
2017-11-29 09:04:12 +01:00
parent 2b957f8d01
commit 9cd1cae65f
+1 -1
View File
@@ -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