odoo static/description 中文显示乱码

源码位置:

@api.depends('name', 'description')
    def _get_desc(self):
        for module in self:
            path = modules.get_module_resource(module.name, 'static/description/index.html')
            if path:
                with tools.file_open(path, 'rb') as desc_file:
                    doc = desc_file.read()

增加 decode

doc = desc_file.read().decode('utf-8')

转载于:https://my.oschina.net/u/3503650/blog/1603027