[FIX] base: join correctly the path

os.path.join(..., <absolute>) returns <absolute> path

closes odoo/odoo#142307

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
Martin Trigaux
2023-11-17 04:35:40 +00:00
parent b01cd6ff48
commit 9429986b63
+1 -1
View File
@@ -162,7 +162,7 @@ class Module(models.Model):
if not module.name:
module.description_html = False
continue
path = os.path.join(module.name, '/static/description/index.html')
path = os.path.join(module.name, 'static/description/index.html')
try:
with tools.file_open(path, 'rb') as desc_file:
doc = desc_file.read()