Skip to content

Commit

Permalink
[FIX] base: ir_ui_view unescape %% in dev mode
Browse files Browse the repository at this point in the history
In dev mode with xml feature, we read the xml from file directly.
%% should be unescape to get % instead.
  • Loading branch information
JKE-be committed Jan 10, 2018
1 parent 1ad8867 commit 8fb203f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odoo/addons/base/ir/ir_ui_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def replacer(m):
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):
Expand Down

0 comments on commit 8fb203f

Please sign in to comment.