Odoo中文社区可以通过以下两个域名访问:shine-it.net , odoo.net.cn

由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解

本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

Windows 7下openERP安装oecn_base_fonts模块的问题



  • 我用的是GreenOpenERP 7.0,PDF报表中午显示黑色方框,在网上搜寻到的解决办法是安装oecn_base_fonts模块。
    但下载该模块下来,解压放在openerp/addons目录里面之后,点模块-更新提示“nice , no update”,在可安装模块也搜索不到该模块。
    请问这个问题如何解决?


  • 管理员

    首先要更新模块列表。



  • [quote author=Joshua link=topic=8060.msg17690#msg17690 date=1374309317]
    首先要更新模块列表。
    [/quote]
    更新模块列表是不是在模块下的更新那?
    更新那我点了之后,说是无需更新。


  • 管理员

    [quote author=nevyn.liang link=topic=8060.msg17703#msg17703 date=1374384898]
    [quote author=Joshua link=topic=8060.msg17690#msg17690 date=1374309317]
    首先要更新模块列表。
    [/quote]
    更新模块列表是不是在模块下的更新那?
    更新那我点了之后,说是无需更新。
    [/quote]

    不是“更新” 是“更新模块列表” 。首先你要打开“技术特性”权限
    详情请看: http://e.weibo.com/2664287321/zAbPU2vjX



  • [quote author=Joshua link=topic=8060.msg17690#msg17690 date=1374309317]

    不是“更新” 是“更新模块列表” 。首先你要打开“技术特性”权限
    详情请看: http://e.weibo.com/2664287321/zAbPU2vjX
    [/quote]
    为啥我的openerp看不到“更新模块列表”的选项?技术特性的权限我已经勾上了。



  • 原来是设置了技术特性权限后还要注销再登陆就看到了,问题解决了,谢谢。



  • [quote author=nevyn.liang link=topic=8060.msg17708#msg17708 date=1374423673]
    原来是设置了技术特性权限后还要注销再登陆就看到了,问题解决了,谢谢。
    [/quote]

    你的GreenOpenERP可以安装oecn_base_fonts模块吗?



  • 可以的呀,把模块放到addons这个目录下,然后用户设置技术特性的权限--注销再登陆--更新一下模块列表,在模块里搜索“oecn”就可以安装了。



  • [quote author=nevyn.liang link=topic=8060.msg17775#msg17775 date=1374720351]
    可以的呀,把模块放到addons这个目录下,然后用户设置技术特性的权限--注销再登陆--更新一下模块列表,在模块里搜索“oecn”就可以安装了。
    [/quote]
    请问你的GreenOpenERP什么版本的? 有没有安装字体,还是直接安装模块的? 我能看到模块并点击安装,但报错,安装失败,你的模块哪里下载的,可否上传到这里,谢谢!



  • 我安装此模块的错误日志:

    <br />2013-07-25 10:31:56,966 948 INFO test openerp.modules.module: module oec<br />n_base_fonts: creating or updating database tables<br />2013-07-25 10:31:57,385 948 INFO test openerp.modules.loading: module oe<br />cn_base_fonts: loading oecn_font_installer.xml<br />2013-07-25 10:32:16,944 948 ERROR test openerp.addons.base.ir.ir_ui_view<br />: Can&#039;t render view&nbsp; for model: oecn.font.installer<br />Traceback (most recent call last):<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\openerp\addons\base\ir\ir_ui_view.py&quot;, line 126, in _check<br />_render_view<br />&nbsp; &nbsp; fvg = self.pool.get(view.model).fields_view_get(cr, uid, view_id=view.id, view_type=vi<br />ew.type, context=context)<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\openerp\osv\orm.py&quot;, line 2260, in fields_view_get<br />&nbsp; &nbsp; xarch, xfields = self.__view_look_dom_arch(cr, user, result&#91;&#039;arch&#039;], view_id, context=<br />ctx)<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\openerp\osv\orm.py&quot;, line 1913, in __view_look_dom_arch<br />&nbsp; &nbsp; fields_def = self.__view_look_dom(cr, user, node, view_id, False, fields, context=cont<br />ext)<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\openerp\osv\orm.py&quot;, line 1859, in __view_look_dom<br />&nbsp; &nbsp; fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, c<br />ontext))<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\openerp\osv\orm.py&quot;, line 1859, in __view_look_dom<br />&nbsp; &nbsp; fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, c<br />ontext))<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\openerp\osv\orm.py&quot;, line 1776, in __view_look_dom<br />&nbsp; &nbsp; xarch, xfields = relation.__view_look_dom_arch(cr, user, f, view_id, ctx)<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\openerp\osv\orm.py&quot;, line 1912, in __view_look_dom_arch<br />&nbsp; &nbsp; fields = self.fields_get(cr, user, None, context)<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\openerp\osv\orm.py&quot;, line 3514, in fields_get<br />&nbsp; &nbsp; res[f] = fields.field_to_dict(self, cr, user, field, context=context)<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\openerp\osv\fields.py&quot;, line 1525, in field_to_dict<br />&nbsp; &nbsp; res&#91;&#039;selection&#039;] = field.selection(model, cr, user, context)<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\openerp\addons\oecn_base_fonts\oecn_font_installer.py&quot;, li<br />ne 54, in get_system_fonts<br />&nbsp; &nbsp; return self._system_fonts_get(cr, uid)<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\openerp\addons\oecn_base_fonts\oecn_font_installer.py&quot;, li<br />ne 69, in _system_fonts_get<br />&nbsp; &nbsp; ff.search()<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\python\lib\site-packages\reportlab\lib\fontfinder.py&quot;, lin<br />e 259, in search<br />&nbsp; &nbsp; font = TTFontFile(fileName,validate=self.validate)<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\python\lib\site-packages\reportlab\pdfbase\ttfonts.py&quot;, li<br />ne 413, in __init__<br />&nbsp; &nbsp; self.extractInfo(charInfo)<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\python\lib\site-packages\reportlab\pdfbase\ttfonts.py&quot;, li<br />ne 473, in extractInfo<br />&nbsp; &nbsp; A(chr(char))<br />ValueError: chr() arg not in range(256)<br />2013-07-25 10:32:17,247 948 ERROR test openerp.tools.convert: Parse erro<br />r in file:///c:/temp/OpenERP/OpenERP/openerp/addons/oecn_base_fonts/oecn_font_installer.xm<br />l:5:<br />&lt;record id=&quot;view_font_configuration_installer&quot; model=&quot;ir.ui.view&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;name&quot;&gt;oecn.font.installer.form&lt;/field&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;model&quot;&gt;oecn.font.installer&lt;/field&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;inherit_id&quot; ref=&quot;base.res_config_installer&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;arch&quot; type=&quot;xml&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;data&gt;&lt;form position=&quot;attributes&quot; version=&quot;7.0&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;attribute name=&quot;string&quot;&gt;Customer Font Mapping Configuration&lt;/attribut<br />e&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;footer position=&quot;replace&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;footer&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;button name=&quot;action_next&quot; type=&quot;object&quot; string=&quot;Continue&quot; class=&quot;oe<br />_highlight&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/footer&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/footer&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;separator string=&quot;title&quot; position=&quot;replace&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p class=&quot;oe_grey&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Fonts used in the default report may not support the characters in<br /> your lanuage. Use the setting here to replace the Original font with the font you choose.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;group&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;wrap&quot; class=&quot;oe_inline&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;map_ids&quot; nolabel=&quot;1&quot; colspan=&quot;4&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tree string=&quot;Font replace&quot; editable=&quot;top&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;pdf_font&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;new_font&quot; on_change=&quot;onchange_new_font(new_font)&quot;<br />/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;name&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tree&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/field&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/group&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/separator&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/data&gt;&lt;/field&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/record&gt;<br />Traceback (most recent call last):<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\openerp\tools\convert.py&quot;, line 847, in parse<br />&nbsp; &nbsp; self._tags[rec.tag](self.cr, rec, n)<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\openerp\tools\convert.py&quot;, line 814, in _tag_record<br />&nbsp; &nbsp; id = self.pool.get(&#039;ir.model.data&#039;)._update(cr, self.uid, rec_model, self.module, res,<br /> rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mod<br />e=self.mode, context=rec_context )<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\openerp\addons\base\ir\ir_model.py&quot;, line 963, in _update<br />&nbsp; &nbsp; res_id = model_obj.create(cr, uid, values, context=context)<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\openerp\addons\base\ir\ir_ui_view.py&quot;, line 103, in create<br /><br />&nbsp; &nbsp; return super(view, self).create(cr, uid, values, context)<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\openerp\osv\orm.py&quot;, line 4470, in create<br />&nbsp; &nbsp; self._validate(cr, user, [id_new], context)<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\openerp\osv\orm.py&quot;, line 1544, in _validate<br />&nbsp; &nbsp; raise except_orm(&#039;ValidateError&#039;, &#039;\n&#039;.join(error_msgs))<br />except_orm: (&#039;ValidateError&#039;, u&#039;Error occurred while validating the field(s) arch: Invalid<br /> XML for View Architecture!&#039;)<br />2013-07-25 10:32:17,558 948 ERROR test openerp.netsvc: ValidateError<br />Error occurred while validating the field(s) arch: Invalid XML for View Architecture!<br />Traceback (most recent call last):<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\openerp\netsvc.py&quot;, line 292, in dispatch_rpc<br />&nbsp; &nbsp; result = ExportService.getService(service_name).dispatch(method, params)<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\openerp\service\web_services.py&quot;, line 626, in dispatch<br />&nbsp; &nbsp; res = fn(db, uid, *params)<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\openerp\osv\osv.py&quot;, line 188, in execute_kw<br />&nbsp; &nbsp; return self.execute(db, uid, obj, method, *args, **kw or {})<br />&nbsp; File &quot;c:\temp\OpenERP\OpenERP\openerp\osv\osv.py&quot;, line 144, in wrapper<br />&nbsp; &nbsp; raise except_osv(inst.name, inst.value)<br />except_osv: (&#039;ValidateError&#039;, u&#039;Error occurred while validating the field(s) arch: Invalid<br /> XML for View Architecture!&#039;)<br />2013-07-25 10:32:17,647 948 INFO test werkzeug: 127.0.0.1 - - [25/Jul/20<br />13 10:32:17] &quot;POST /web/dataset/call_button HTTP/1.1&quot; 200 -<br />2013-07-25 10:32:18,003 948 INFO ? werkzeug: 127.0.0.1 - - [25/Jul/2013<br />10:32:18] &quot;GET /web/static/src/img/warning.png HTTP/1.1&quot; 200 -<br />
    



  • Win7 32位的可以安装, Win7 64位的死活装不上。


Log in to reply