OpenERP V7.0 报表中文模块(oecn_base_fonts)
-
已经更新了模块,还是沿用四种字体配置方式,配置更灵活。
详情请看博客 http://cn.openerp.cn/openerp_v7_oecn_base_fonts/ br />
[s]模块下载地址: [检测到链接无效,已移除]
这里说的是7.0,所以应该下载trunk版本。
安装模块之后在设置里面 设置->设置->常规设置 中文字体的路径
[attachimg=1]
例如我的(/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc)或者windows下的(C:\WINDOWS\Fonts\simsun.ttc),CJK换行打钩,然后保存,好了。[/s] -
试了一下,点击常规设置,报错呀:
View error
Can't find field 'cjk_wrap' in the following view parts composing the view of object model 'base.config.settings':
* base.config.settings.oecn.base.font
Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model -
[quote author=Joshua link=topic=4648.msg12907#msg12907 date=1357652238]
你的openerp是7.0么?尝试重启服务器?
[/quote]
是OE7,重启opener-server后,那个view的错误没有了,但是在填入font url后,保存时,报错:
ProgrammingError: column "cjk_wrap" of relation "base_config_settings" does not exist
LINE 1: insert into "base_config_settings" (id,"cjk_wrap","module_sh... -
[quote author=Joshua link=topic=4648.msg12910#msg12910 date=1357654375]
尝试重新安装模块。
[/quote]
现在已经解决了,过程如下(OE7):
1、之前报错的情况,由于我装过先前版本oecn(也是trunk下的),于是我先卸载,然后安装新版本的oecn,没有重启服务,于是报view那个错,重启服务后,没有view的错了,但是填写font url后保存报错。
2、还好我之前备份过一次数据库(没有安装oecn),于是我回复数据库,重新安装oecn,很好,工作正常,可以出中文PDF;
3、我想是不是我之前卸载的时候,重启一下服务,然后重新安装oecn,应该会没有问题,:)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login