3.CJK warp是中文字体换行处理,默认勾选。Original Fonts是系统里面需要用到的字体(一共有6种,一般需要全部替换掉),Replace Fonts 是你想替换成的字体(取自于OpenERP Server的系统内)。
进行到这步时报告以下错误。
=================错误报告=====================
您的 OpenERP 版本没有包含支持。支持与维护服务在此处可以购买:模型”%s“的字段.
OpenERP Server Error
Client Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/addons/web/common/http.py", line 180, in dispatch
response["result"] = method(controller, self, **self.params)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/addons/web/controllers/main.py", line 1204, in load
return self.fields_view_get(req, model, view_id, view_type, toolbar=toolbar)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/addons/web/controllers/main.py", line 1086, in fields_view_get
fvg = Model.fields_view_get(view_id, view_type, context, toolbar, submenu)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/addons/web/common/openerplib/main.py", line 250, in proxy
args, kw)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
result = self.connector.send(self.service_name, method, *args)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/addons/web/common/http.py", line 611, in send
raise fault
Server Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/addons/web/common/http.py", line 592, in send
result = openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/netsvc.py", line 360, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/service/web_services.py", line 586, in dispatch
res = fn(db, uid, *params)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/osv/osv.py", line 167, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/osv/osv.py", line 164, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/osv/orm.py", line 2153, in fields_view_get
xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=ctx)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/osv/orm.py", line 1793, in __view_look_dom_arch
fields_def = self.__view_look_dom(cr, user, node, view_id, False, fields, context=context)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/osv/orm.py", line 1742, in __view_look_dom
fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/osv/orm.py", line 1742, in __view_look_dom
fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/osv/orm.py", line 1742, in __view_look_dom
fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/osv/orm.py", line 1661, in __view_look_dom
xarch, xfields = relation.__view_look_dom_arch(cr, user, f, view_id, ctx)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/osv/orm.py", line 1792, in __view_look_dom_arch
fields = self.fields_get(cr, user, None, context)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/osv/orm.py", line 3357, in fields_get
res[f] = fields.field_to_dict(self, cr, user, field, context=context)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/osv/fields.py", line 1587, in field_to_dict
res['selection'] = field.selection(model, cr, user, context)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/addons/oecn_base_fonts/oecn_base_fonts_config.py", line 37, in __system_fonts_get
return self._system_fonts_get(cr, uid)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/addons/oecn_base_fonts/oecn_base_fonts_config.py", line 58, in _system_fonts_get
ff.search()
File "/usr/lib/python2.7/dist-packages/reportlab/lib/fontfinder.py", line 242, in search
f.timeModified = rl_getmtime(f.fileName)
File "/usr/lib/python2.7/dist-packages/reportlab/lib/utils.py", line 477, in rl_getmtime
if os_path_isfile(pn) or _isFSD or loader is None: return os_path_getmtime(pn)
File "/usr/lib/python2.7/genericpath.py", line 54, in getmtime
return os.stat(filename).st_mtime
OSError: [Errno 2] 没有那个文件或目录: '/usr/share/fonts/truetype/ttf-japanese-gothic.ttf'
=====================================================================
但搜索了一下,发现有这个字体
“/var/lib/dpkg/alternatives/ttf-japanese-gothic.ttf
/usr/share/fonts/truetype/ttf-japanese-gothic.ttf
/etc/alternatives/ttf-japanese-gothic.ttf
”
H
hawkflying
@hawkflying
-
Oecn_base_fonts 使用说明(解决v.7.0,v6.1,V6.0.x的PDF中文字体方框问题,支持CJK语言) -
OpenER 6.1报表中文问题的解决办法首先感谢Joshua的回复。
找到原因了:
我是通过源码方式安装的,
源码路径:/opt/workspace/openerp-setup
安装完成后:
/usr/local/lib/python2.7/dist-packages/openerp-6.1_20120710_233320-py2.7.egg/openerp/addons
我把文件放到了源码路径中的addons所以,一直没有可安装的模块儿。放到安装完成后的路径,就行了。
第一次在ubuntu上使用源码方式安装。 还在研究中,请各位前辈指教。 -
OpenER 6.1报表中文问题的解决办法1、下载这个模块 [检测到链接无效,已移除] br />2、将这个zip文件解压后复制到openerp\addons目录下
3、以admin用户登陆OPENERP,依次点击:设置→模块→更新模块列表→更新→打开模块
4、搜索不到base_report_cn模块。
<br / [检测到链接无效,已移除] br />根据这个帖子安装“oecn_base_font”,
1、以admin用户登陆OPENERP,依次点击:设置→模块→更新模块列表→更新→打开模块
2、搜索不到oecn_base_font”模块。
请求帮助!
安装环境:
ubuntu 12.04lts
postgresql9
openerpv6.1