[quote author=lindongy link=topic=2470.msg8191#msg8191 date=1308542480]
最新的研究发现,部分报表页眉页脚中文显示方框也是因为所使用的字体不支持中文,可以通过以下方法解决:
修改base_report_cn中的__init__.py,在其中字体映射表的部分添加两行,如下:
fontmap = {
'DejaVu Sans': 'SimHei',
'DejaVu Sans Bold': 'SimHei',
即可。
[/quote]
我装的7.0windows版本,安装目录下没找到这个base_report_cn?
是什么状况啊?
szTom
-
解决报表以及表头无法显示中文的问题 -
OpenERP中国财务模块(l10n_cn)改进计划好啊,强烈支持!
现在的资产负债表和损益表是一个文件,过滤条件都是期间。
这两表要分开,损益表 可选择过滤起始期间;资产负债表过滤条件则选择具体日期。 -
Openerp server錯誤log我这里也报错:
OpenERP Server Error
Client Traceback (most recent call last):
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server\openerp\addons\web\http.py", line 204, in dispatch
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server\openerp\addons\web\controllers\main.py", line 1427, in load
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server\openerp\addons\web\session.py", line 42, in proxy
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server\openerp\addons\web\session.py", line 30, in proxy_method
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server\openerp\addons\web\session.py", line 103, in send
Server Traceback (most recent call last):
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server\openerp\addons\web\session.py", line 89, in send
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server.\openerp\netsvc.py", line 292, in dispatch_rpc
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server.\openerp\service\web_services.py", line 626, in dispatch
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server.\openerp\osv\osv.py", line 188, in execute_kw
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server.\openerp\osv\osv.py", line 131, in wrapper
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server.\openerp\osv\osv.py", line 197, in execute
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server.\openerp\osv\osv.py", line 185, in execute_cr
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server\openerp\addons\hr\hr_department.py", line 94, in read
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server.\openerp\osv\orm.py", line 3604, in read
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server.\openerp\osv\orm.py", line 3724, in _read_flat
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server.\openerp\osv\fields.py", line 1133, in get
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server\openerp\addons\base\ir\ir_actions.py", line 211, in _search_view
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server\openerp\addons\base\res\res_partner.py", line 312, in fields_view_get
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server.\openerp\osv\orm.py", line 2260, in fields_view_get
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server.\openerp\osv\orm.py", line 1913, in __view_look_dom_arch
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server.\openerp\osv\orm.py", line 1842, in __view_look_dom
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server.\openerp\tools\cache.py", line 18, in lookup
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server.\openerp\tools\cache.py", line 46, in lookup
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server\openerp\addons\base\ir\ir_translation.py", line 327, in _get_source
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server.\openerp\sql_db.py", line 161, in wrapper
File "E:\ProgramW8(x86)\OpenERP 7.0-20130730-231022\Server\server.\openerp\sql_db.py", line 226, in execute
InternalError: 错误: 索引"ir_translation_src_hash_idx"在块0上包含未期望的零页
HINT: 请重建索引 (REINDEX).