[app_base_chinese] opt path

This commit is contained in:
Chill
2024-11-11 16:47:25 +08:00
parent 8b67f67ae2
commit e4602b51ca
2 changed files with 4 additions and 3 deletions

View File

@@ -17,8 +17,8 @@
{ {
'name': 'odoo中文版套件之基础,中国会计基础,Chinese Enhance All in One', 'name': 'odoo中文版套件之基础,中国会计基础,Chinese Enhance All in One',
'version': '24.11.04', 'version': '24.11.11',
'author': 'odooai.cn', 'author': 'odooai.cn',
'category': 'Base', 'category': 'Base',
'website': 'https://www.odooai.cn', 'website': 'https://www.odooai.cn',

View File

@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import os
import logging import logging
import lxml.html import lxml.html
from odoo import api, fields, models, modules, tools, _ from odoo import api, fields, models, modules, tools, _
@@ -17,7 +18,7 @@ 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(module_path, 'static/description/index_cn.html') path = modules.check_resource_path(os.path.join(module_path, 'static/description/index_cn.html'))
else: else:
module.description_html_cn = False module.description_html_cn = False
if module_path and path: if module_path and path: