From 8fb203f7c692c0262a579575127b429e858ff3a2 Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Wed, 10 Jan 2018 21:55:05 +0100 Subject: [PATCH] [FIX] base: ir_ui_view unescape %% in dev mode In dev mode with xml feature, we read the xml from file directly. %% should be unescape to get % instead. --- odoo/addons/base/ir/ir_ui_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/addons/base/ir/ir_ui_view.py b/odoo/addons/base/ir/ir_ui_view.py index 2bef251ab86..61d679f8d90 100644 --- a/odoo/addons/base/ir/ir_ui_view.py +++ b/odoo/addons/base/ir/ir_ui_view.py @@ -201,7 +201,7 @@ actual arch. fullpath = get_resource_path(*view.arch_fs.split('/')) arch_fs = get_view_arch_from_file(fullpath, view.xml_id) # replace %(xml_id)s, %(xml_id)d, %%(xml_id)s, %%(xml_id)d by the res_id - arch_fs = arch_fs and resolve_external_ids(arch_fs, view.xml_id) + arch_fs = arch_fs and resolve_external_ids(arch_fs, view.xml_id).replace('%%', '%') view.arch = arch_fs or view.arch_db def _inverse_arch(self):