mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
[app_user_audit] v18
This commit is contained in:
@@ -18,7 +18,12 @@ class Module(models.Model):
|
|||||||
for module in self:
|
for module in self:
|
||||||
module_path = modules.get_module_path(module.name, display_warning=False) # avoid to log warning for fake community module
|
module_path = modules.get_module_path(module.name, display_warning=False) # avoid to log warning for fake community module
|
||||||
if module_path:
|
if module_path:
|
||||||
path = modules.check_resource_path(os.path.join(module_path, 'static/description/index_cn.html'))
|
index_path = os.path.join(module_path, 'static/description/index_cn.html')
|
||||||
|
index_path = os.path.normpath(index_path)
|
||||||
|
if os.path.exists(index_path):
|
||||||
|
path = tools.misc.file_path(index_path)
|
||||||
|
else:
|
||||||
|
path = False
|
||||||
else:
|
else:
|
||||||
module.description_html_cn = False
|
module.description_html_cn = False
|
||||||
if module_path and path:
|
if module_path and path:
|
||||||
|
|||||||
Reference in New Issue
Block a user