[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.
This commit is contained in:
Jeremy Kersten
2018-01-10 21:01:33 +01:00
parent 1ad8867dee
commit 8fb203f7c6
+1 -1
View File
@@ -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):