Windows 7下openERP安装oecn_base_fonts模块的问题
-
[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看不到“更新模块列表”的选项?技术特性的权限我已经勾上了。 -
原来是设置了技术特性权限后还要注销再登陆就看到了,问题解决了,谢谢。
-
可以的呀,把模块放到addons这个目录下,然后用户设置技术特性的权限--注销再登陆--更新一下模块列表,在模块里搜索“oecn”就可以安装了。
-
我安装此模块的错误日志:
<br />2013-07-25 10:31:56,966 948 [1;32m[1;49mINFO[0m test openerp.modules.module: module oec<br />n_base_fonts: creating or updating database tables<br />2013-07-25 10:31:57,385 948 [1;32m[1;49mINFO[0m test openerp.modules.loading: module oe<br />cn_base_fonts: loading oecn_font_installer.xml<br />2013-07-25 10:32:16,944 948 [1;31m[1;49mERROR[0m test openerp.addons.base.ir.ir_ui_view<br />: Can't render view for model: oecn.font.installer<br />Traceback (most recent call last):<br /> File "c:\temp\OpenERP\OpenERP\openerp\addons\base\ir\ir_ui_view.py", line 126, in _check<br />_render_view<br /> fvg = self.pool.get(view.model).fields_view_get(cr, uid, view_id=view.id, view_type=vi<br />ew.type, context=context)<br /> File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 2260, in fields_view_get<br /> xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=<br />ctx)<br /> File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 1913, in __view_look_dom_arch<br /> fields_def = self.__view_look_dom(cr, user, node, view_id, False, fields, context=cont<br />ext)<br /> File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 1859, in __view_look_dom<br /> fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, c<br />ontext))<br /> File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 1859, in __view_look_dom<br /> fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, c<br />ontext))<br /> File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 1776, in __view_look_dom<br /> xarch, xfields = relation.__view_look_dom_arch(cr, user, f, view_id, ctx)<br /> File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 1912, in __view_look_dom_arch<br /> fields = self.fields_get(cr, user, None, context)<br /> File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 3514, in fields_get<br /> res[f] = fields.field_to_dict(self, cr, user, field, context=context)<br /> File "c:\temp\OpenERP\OpenERP\openerp\osv\fields.py", line 1525, in field_to_dict<br /> res['selection'] = field.selection(model, cr, user, context)<br /> File "c:\temp\OpenERP\OpenERP\openerp\addons\oecn_base_fonts\oecn_font_installer.py", li<br />ne 54, in get_system_fonts<br /> return self._system_fonts_get(cr, uid)<br /> File "c:\temp\OpenERP\OpenERP\openerp\addons\oecn_base_fonts\oecn_font_installer.py", li<br />ne 69, in _system_fonts_get<br /> ff.search()<br /> File "c:\temp\OpenERP\OpenERP\python\lib\site-packages\reportlab\lib\fontfinder.py", lin<br />e 259, in search<br /> font = TTFontFile(fileName,validate=self.validate)<br /> File "c:\temp\OpenERP\OpenERP\python\lib\site-packages\reportlab\pdfbase\ttfonts.py", li<br />ne 413, in __init__<br /> self.extractInfo(charInfo)<br /> File "c:\temp\OpenERP\OpenERP\python\lib\site-packages\reportlab\pdfbase\ttfonts.py", li<br />ne 473, in extractInfo<br /> A(chr(char))<br />ValueError: chr() arg not in range(256)<br />2013-07-25 10:32:17,247 948 [1;31m[1;49mERROR[0m 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 /><record id="view_font_configuration_installer" model="ir.ui.view"><br /> <field name="name">oecn.font.installer.form</field><br /> <field name="model">oecn.font.installer</field><br /> <field name="inherit_id" ref="base.res_config_installer"/><br /> <field name="arch" type="xml"><br /> <data><form position="attributes" version="7.0"><br /> <attribute name="string">Customer Font Mapping Configuration</attribut<br />e><br /> </form><br /> <footer position="replace"><br /> <footer><br /> <button name="action_next" type="object" string="Continue" class="oe<br />_highlight"/><br /> </footer><br /> </footer><br /> <separator string="title" position="replace"><br /> <p class="oe_grey"><br /> 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 /> </p><br /> <group><br /> <field name="wrap" class="oe_inline"/><br /> <field name="map_ids" nolabel="1" colspan="4"><br /> <tree string="Font replace" editable="top"><br /> <field name="pdf_font"/><br /> <field name="new_font" on_change="onchange_new_font(new_font)"<br />/><br /> <field name="name"/><br /> </tree><br /> </field><br /> </group><br /> </separator><br /> </data></field><br /> </record><br />Traceback (most recent call last):<br /> File "c:\temp\OpenERP\OpenERP\openerp\tools\convert.py", line 847, in parse<br /> self._tags[rec.tag](self.cr, rec, n)<br /> File "c:\temp\OpenERP\OpenERP\openerp\tools\convert.py", line 814, in _tag_record<br /> id = self.pool.get('ir.model.data')._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 /> File "c:\temp\OpenERP\OpenERP\openerp\addons\base\ir\ir_model.py", line 963, in _update<br /> res_id = model_obj.create(cr, uid, values, context=context)<br /> File "c:\temp\OpenERP\OpenERP\openerp\addons\base\ir\ir_ui_view.py", line 103, in create<br /><br /> return super(view, self).create(cr, uid, values, context)<br /> File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 4470, in create<br /> self._validate(cr, user, [id_new], context)<br /> File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 1544, in _validate<br /> raise except_orm('ValidateError', '\n'.join(error_msgs))<br />except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid<br /> XML for View Architecture!')<br />2013-07-25 10:32:17,558 948 [1;31m[1;49mERROR[0m 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 /> File "c:\temp\OpenERP\OpenERP\openerp\netsvc.py", line 292, in dispatch_rpc<br /> result = ExportService.getService(service_name).dispatch(method, params)<br /> File "c:\temp\OpenERP\OpenERP\openerp\service\web_services.py", line 626, in dispatch<br /> res = fn(db, uid, *params)<br /> File "c:\temp\OpenERP\OpenERP\openerp\osv\osv.py", line 188, in execute_kw<br /> return self.execute(db, uid, obj, method, *args, **kw or {})<br /> File "c:\temp\OpenERP\OpenERP\openerp\osv\osv.py", line 144, in wrapper<br /> raise except_osv(inst.name, inst.value)<br />except_osv: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid<br /> XML for View Architecture!')<br />2013-07-25 10:32:17,647 948 [1;32m[1;49mINFO[0m test werkzeug: 127.0.0.1 - - [25/Jul/20<br />13 10:32:17] "POST /web/dataset/call_button HTTP/1.1" 200 -<br />2013-07-25 10:32:18,003 948 [1;32m[1;49mINFO[0m ? werkzeug: 127.0.0.1 - - [25/Jul/2013<br />10:32:18] "GET /web/static/src/img/warning.png HTTP/1.1" 200 -<br />