答题:
1.1 b=sorted(set(a))
1.2
2.1
2.2
3.1
3.2
xvweirong
- 
 Open ERP 开发实施人员面试题
- 
 先安科技(Shine IT)寻人启事招聘兼职吗? 
- 
 求助:怎样实现同时满足2个条件后,隐藏button按钮有试过用Group中Access Rights来进行控制吗? 
- 
 对HR模块的一些扩展(用户和部门之间的关系)Domain规则是Lisp语法吗? 
- 
 打印的单据内容怎么汉化翻译?果然如此,太感谢了!  
- 
 打印的单据内容怎么汉化翻译?界面菜单都知道怎么汉化了,打印的单据发现还是英文的,在哪里可以汉化打印的单据? 
- 
 Windows 7下openERP安装oecn_base_fonts模块的问题Win7 32位的可以安装, Win7 64位的死活装不上。 
- 
 OpenERP安装财务模块出错先安装财务模块,从未出错。 有个偷懒的办法,直接安装MRP模块。 
- 
 Windows 7下openERP安装oecn_base_fonts模块的问题我安装此模块的错误日志: <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 />
 
- 
 Windows 7下openERP安装oecn_base_fonts模块的问题[quote author=nevyn.liang link=topic=8060.msg17775#msg17775 date=1374720351] 
 可以的呀,把模块放到addons这个目录下,然后用户设置技术特性的权限--注销再登陆--更新一下模块列表,在模块里搜索“oecn”就可以安装了。
 [/quote]
 请问你的GreenOpenERP什么版本的? 有没有安装字体,还是直接安装模块的? 我能看到模块并点击安装,但报错,安装失败,你的模块哪里下载的,可否上传到这里,谢谢!
- 
 如何正确升级一个模块?如果某个模块代码有问题,比如:生产资源计划模块(mrp), 假设网上的新版本已经修复了问题,应该怎么更新此模块? 是先卸载模块,删除Addon中对应的目录,下载最新的模块代码,放到Addon目录中,更新模块列表, 然后安装新版本模块?原来的数据不会丢失。 
 这是正确的升级模块方法吗?
- 
 Openerp翻译贡献指南是否在launchpad.net提交的翻译,在第二天就会出现在最新的安装包中了? 
- 
 OpenERP7.0界面汉化活动正在紧张进行中。怎么参与? 昨天POS模块翻译了一些,有地方提交吗? 
- 
 Windows 7下openERP安装oecn_base_fonts模块的问题[quote author=nevyn.liang link=topic=8060.msg17708#msg17708 date=1374423673] 
 原来是设置了技术特性权限后还要注销再登陆就看到了,问题解决了,谢谢。
 [/quote]
 你的GreenOpenERP可以安装oecn_base_fonts模块吗?
- 
 安装CRM等模块时, 为什么只有3个免费用户, 如何扩展?推荐使用Buke Wang制作的GreenOpenERP版本,常用的近200个模块都已经打包在Addon目录下了,【设置】的默认选中菜单改为【Installed Modules】, 而不是【Apps】了,可见作者从实际使用需求出发,做的非常用心。下载地址: http://sourceforge.net/projects/greenopenerp/ 
- 
 产品类别未设置正确科目,导致采购订单无法收货可以在数据库里面直接写SQL批量修改吗? 
- 
 OpenERPv7.0 中文报表字体模块(oecn_base_fonts)安装出错[quote author=Joshua link=topic=8054.msg17672#msg17672 date=1374221762] 
 看看server-log?
 [/quote]
 2013-07-25 10:31:56,966 948 [1;32m[1;49mINFO[0m test openerp.modules.module: module oec
 n_base_fonts: creating or updating database tables
 2013-07-25 10:31:57,385 948 [1;32m[1;49mINFO[0m test openerp.modules.loading: module oe
 cn_base_fonts: loading oecn_font_installer.xml
 2013-07-25 10:32:16,944 948 [1;31m[1;49mERROR[0m test openerp.addons.base.ir.ir_ui_view
 : Can't render view for model: oecn.font.installer
 Traceback (most recent call last):
 File "c:\temp\OpenERP\OpenERP\openerp\addons\base\ir\ir_ui_view.py", line 126, in _check
 _render_view
 fvg = self.pool.get(view.model).fields_view_get(cr, uid, view_id=view.id, view_type=vi
 ew.type, context=context)
 File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 2260, in fields_view_get
 xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=
 ctx)
 File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 1913, in __view_look_dom_arch
 fields_def = self.__view_look_dom(cr, user, node, view_id, False, fields, context=cont
 ext)
 File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 1859, in __view_look_dom
 fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, c
 ontext))
 File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 1859, in __view_look_dom
 fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, c
 ontext))
 File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 1776, in __view_look_dom
 xarch, xfields = relation.__view_look_dom_arch(cr, user, f, view_id, ctx)
 File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 1912, in __view_look_dom_arch
 fields = self.fields_get(cr, user, None, context)
 File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 3514, in fields_get
 res[f] = fields.field_to_dict(self, cr, user, field, context=context)
 File "c:\temp\OpenERP\OpenERP\openerp\osv\fields.py", line 1525, in field_to_dict
 res['selection'] = field.selection(model, cr, user, context)
 File "c:\temp\OpenERP\OpenERP\openerp\addons\oecn_base_fonts\oecn_font_installer.py", li
 ne 54, in get_system_fonts
 return self._system_fonts_get(cr, uid)
 File "c:\temp\OpenERP\OpenERP\openerp\addons\oecn_base_fonts\oecn_font_installer.py", li
 ne 69, in _system_fonts_get
 ff.search()
 File "c:\temp\OpenERP\OpenERP\python\lib\site-packages\reportlab\lib\fontfinder.py", lin
 e 259, in search
 font = TTFontFile(fileName,validate=self.validate)
 File "c:\temp\OpenERP\OpenERP\python\lib\site-packages\reportlab\pdfbase\ttfonts.py", li
 ne 413, in init
 self.extractInfo(charInfo)
 File "c:\temp\OpenERP\OpenERP\python\lib\site-packages\reportlab\pdfbase\ttfonts.py", li
 ne 473, in extractInfo
 A(chr(char))
 ValueError: chr() arg not in range(256)
 2013-07-25 10:32:17,247 948 [1;31m[1;49mERROR[0m test openerp.tools.convert: Parse erro
 r in file:///c:/temp/OpenERP/OpenERP/openerp/addons/oecn_base_fonts/oecn_font_installer.xm
 l:5:
 <record id="view_font_configuration_installer" model="ir.ui.view">
 <field name="name">oecn.font.installer.form</field>
 <field name="model">oecn.font.installer</field>
 <field name="inherit_id" ref="base.res_config_installer"/>
 <field name="arch" type="xml">
 <data><form position="attributes" version="7.0">
 <attribute name="string">Customer Font Mapping Configuration</attribut
 e>
 </form>
 <footer position="replace">
 <footer>
 <button name="action_next" type="object" string="Continue" class="oe
 _highlight"/>
 </footer>
 </footer>
 <separator string="title" position="replace">
 <p class="oe_grey">
 Fonts used in the default report may not support the characters in
 your lanuage. Use the setting here to replace the Original font with the font you choose.
 </p>
 <group>
 <field name="wrap" class="oe_inline"/>
 <field name="map_ids" nolabel="1" colspan="4">
 <tree string="Font replace" editable="top">
 <field name="pdf_font"/>
 <field name="new_font" on_change="onchange_new_font(new_font)"
 />
 <field name="name"/>
 </tree>
 </field>
 </group>
 </separator>
 </data></field>
 </record>
 Traceback (most recent call last):
 File "c:\temp\OpenERP\OpenERP\openerp\tools\convert.py", line 847, in parse
 self._tags[rec.tag](self.cr, rec, n)
 File "c:\temp\OpenERP\OpenERP\openerp\tools\convert.py", line 814, in _tag_record
 id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res,
 rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mod
 e=self.mode, context=rec_context )
 File "c:\temp\OpenERP\OpenERP\openerp\addons\base\ir\ir_model.py", line 963, in _update
 res_id = model_obj.create(cr, uid, values, context=context)
 File "c:\temp\OpenERP\OpenERP\openerp\addons\base\ir\ir_ui_view.py", line 103, in create
 return super(view, self).create(cr, uid, values, context)
 File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 4470, in create
 self._validate(cr, user, [id_new], context)
 File "c:\temp\OpenERP\OpenERP\openerp\osv\orm.py", line 1544, in _validate
 raise except_orm('ValidateError', '\n'.join(error_msgs))
 except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid
 XML for View Architecture!')
 2013-07-25 10:32:17,558 948 [1;31m[1;49mERROR[0m test openerp.netsvc: ValidateError
 Error occurred while validating the field(s) arch: Invalid XML for View Architecture!
 Traceback (most recent call last):
 File "c:\temp\OpenERP\OpenERP\openerp\netsvc.py", line 292, in dispatch_rpc
 result = ExportService.getService(service_name).dispatch(method, params)
 File "c:\temp\OpenERP\OpenERP\openerp\service\web_services.py", line 626, in dispatch
 res = fn(db, uid, *params)
 File "c:\temp\OpenERP\OpenERP\openerp\osv\osv.py", line 188, in execute_kw
 return self.execute(db, uid, obj, method, *args, **kw or {})
 File "c:\temp\OpenERP\OpenERP\openerp\osv\osv.py", line 144, in wrapper
 raise except_osv(inst.name, inst.value)
 except_osv: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid
 XML for View Architecture!')
 2013-07-25 10:32:17,647 948 [1;32m[1;49mINFO[0m test werkzeug: 127.0.0.1 - - [25/Jul/20
 13 10:32:17] "POST /web/dataset/call_button HTTP/1.1" 200 -
 2013-07-25 10:32:18,003 948 [1;32m[1;49mINFO[0m ? werkzeug: 127.0.0.1 - - [25/Jul/2013
 10:32:18] "GET /web/static/src/img/warning.png HTTP/1.1" 200 -
- 
 OpenERPv7.0 中文报表字体模块(oecn_base_fonts)安装出错[quote author=Joshua link=topic=8054.msg17665#msg17665 date=1374217432] 
 请注意你下载的是不是 v7.0版本。 http://cn.openerp.cn/openerp_v7_oecn_base_fonts/ 模块下载地址:
 [检测到链接无效,已移除]
 这里说的是7.0,所以应该下载trunk版本。
 [/quote]
 是的,非常确认下载的是trunk版本,截频中有版本显示:7.0.2.1.1。安装报错后,关闭警告框,刷新,显示模块已经安装好了,出现【取消安装】的按钮,但没地方可以设置,而且奇怪的是紧接着安装其他未安装的模块,都会报同样的错误,需要重新启动服务来消除影响。
 有什么办法可以调试,以发现问题所在?
- 
 OpenERPv7.0 中文报表字体模块(oecn_base_fonts)安装出错今天下载的All In One v7.0, Win7环境 
 安装模块(oecn_base_fonts),报错如下:
 ValidateError
 验证字段 arch 时发生错误: Invalid XML for View Architecture!
 没有自动出现配置界面。
 常规设置中也没有出现相关配置项。
- 
 关于7.0的几个问题这几天同时试用6.1和7.0, 遇到以下困惑: 
 1. 扩展视图模式,6.1有,可以看到许多额外设置配置的菜单, 7.0的菜单精简许多,不知道如何打开扩展视图
 2. 单价的编号规则定义,6.1中有关集中的配置页面,7.0中找不到。
 3. 后台例行运算,如MRP计算,6.1中找到集中设置页面,可以指定执行时间,7.0中找不到。
 4. 权限管理中,6.1有组的设置,7.0只找到用户的设置,没有组的设置了,感觉组就是Role的概念,还是很重要的。不知道7.0里面藏在哪里?
 5. 6.1 有Client, 7.0是否没有了,纯Web?
 请大家帮助。
 答:问题1 搞定了,在用户权限中,把技术特性勾上,注销,再登入就有了。
 问题2-3在问题1搞定后都不是问题了。
 技术-序号与标识符-序列
 技术-计划-计划的动作