mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix module chinese. 另外,最低1元起
This commit is contained in:
@@ -21,7 +21,8 @@ class Module(models.Model):
|
||||
else:
|
||||
module.description_html_cn = False
|
||||
if module_path and path:
|
||||
with tools.file_open(path, 'rb') as desc_file:
|
||||
# 注意: b 不能在 mode中才能使用 utf-8
|
||||
with tools.file_open(path, 'r') as desc_file:
|
||||
doc = desc_file.read()
|
||||
html = lxml.html.document_fromstring(doc)
|
||||
for element, attribute, link, pos in html.iterlinks():
|
||||
|
||||
Reference in New Issue
Block a user