Skip to content
Snippets Groups Projects
Commit 14681a34 authored by RomainLibert's avatar RomainLibert Committed by fw-bot
Browse files

[FIX] website_theme_install: avoid crashing if install_filename not in context


closes odoo/odoo#38888

X-original-commit: 28dce415
Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
parent 8baa8c9f
Branches
Tags
No related merge requests found
......@@ -14,6 +14,8 @@ class ThemeView(models.Model):
_description = 'Theme UI View'
def compute_arch_fs(self):
if 'install_filename' not in self._context:
return ''
path_info = get_resource_from_path(self._context['install_filename'])
if path_info:
return '/'.join(path_info[0:2])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment