mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
[app_base_chinese] opt path
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user