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

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

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

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

关于OE7-2014.7.28版本安装l10n_cn_hr_payroll-trunk.1.0 问题请教



  • 在OE7-2014.7.28安装版上,安装l10n_cn_hr_payroll-trunk.1.0,提示报错,截图如下:<br />[img]http://xiangce.baidu.com/picture/detail/fb0425d6d63d7a2ae080a201026a113f5a07047b?from=dialog[/img]<br /><br />日志报错信息如下:<br />2014-08-04 02:03:23,880 2435 INFO Test1 openerp.modules.module: module l10n_cn_hr_payroll: creating or updating database tables<br />2014-08-04 02:03:23,916 2435 INFO Test1 openerp.modules.loading: module l10n_cn_hr_payroll: loading l10n_cn_hr_payroll_view.xml<br />2014-08-04 02:03:23,921 2435 WARNING Test1 openerp.addons.base.ir.ir_ui_view: Setting the type field is deprecated in the ir.ui.view model.<br />2014-08-04 02:03:23,974 2435 ERROR Test1 openerp.addons.base.ir.ir_ui_view: Can't render view  for model: hr.contract<br />Traceback (most recent call last):<br />  File "/opt/oe7/openerp/addons/base/ir/ir_ui_view.py", line 126, in _check_render_view<br />    fvg = self.pool.get(view.model).fields_view_get(cr, uid, view_id=view.id, view_type=view.type, context=context)<br />  File "/opt/oe7/openerp/osv/orm.py", line 2253, in fields_view_get<br />    arch=apply_view_inheritance(cr, user, source, sql_res['id']),<br />  File "/opt/oe7/openerp/osv/orm.py", line 2211, in apply_view_inheritance<br />    source = apply_inheritance_specs(source, view_arch, view_id)<br />  File "/opt/oe7/openerp/osv/orm.py", line 2195, in apply_inheritance_specs<br />    raise_view_error("Element '%s' not found in parent view '%%(parent_xml_id)s'" % tag, inherit_id)<br />  File "/opt/oe7/openerp/osv/orm.py", line 2088, in raise_view_error<br />    %  (child_view.xml_id, self._name, error_msg))<br />AttributeError: View definition error for inherited view '' on model 'hr.contract': Element '<xpath expr="/form/notebook/page[@name='information']/group[@name='right_column']/field[@name='struct_id']">' not found in parent view 'hr_contract.hr_contract_view_form'<br />2014-08-04 02:03:23,980 2435 ERROR Test1 openerp.tools.convert: Parse error in /opt/oe7/openerp/addons/l10n_cn_hr_payroll/l10n_cn_hr_payroll_view.xml:5: <br /><record id="hr_contract_form_l10n_cn_inherit" model="ir.ui.view"><br />            <field name="name">hr.contract.form.inherit</field><br />            <field name="model">hr.contract</field><br />            <field name="type">form</field><br />            <field name="priority">20</field><br />            <field name="inherit_id" ref="hr_contract.hr_contract_view_form"/><br />            <field name="arch" type="xml"><br />            <data><br />                <xpath expr="/form/notebook/page[@name='information']/group[@name='right_column']/field[@name='struct_id']" position="after"><br />                    <field name="pit_exemption_amount"/><br />                    <field name="social_insurance_amount"/><br />                </xpath><br />            </data><br />            </field><br />        </record><br />Traceback (most recent call last):<br />  File "/opt/oe7/openerp/tools/convert.py", line 852, in parse<br />    self._tags[rec.tag](self.cr, rec, n)<br />  File "/opt/oe7/openerp/tools/convert.py", line 819, in _tag_record<br />    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), mode=self.mode, context=rec_context )<br />  File "/opt/oe7/openerp/addons/base/ir/ir_model.py", line 971, in _update<br />    res_id = model_obj.create(cr, uid, values, context=context)<br />  File "/opt/oe7/openerp/addons/base/ir/ir_ui_view.py", line 103, in create<br />    return super(view, self).create(cr, uid, values, context)<br />  File "/opt/oe7/openerp/osv/orm.py", line 4551, in create<br />    self._validate(cr, user, [id_new], context)<br />  File "/opt/oe7/openerp/osv/orm.py", line 1562, in _validate<br />    raise except_orm('ValidateError', '\n'.join(error_msgs))<br />except_orm: ('ValidateError', u'\u9a8c\u8bc1\u5b57\u6bb5 arch \u65f6\u53d1\u751f\u9519\u8bef\uff1aInvalid XML for View Architecture!')<br />2014-08-04 02:03:23,981 2435 ERROR Test1 openerp.netsvc: ValidateError<br />验证字段 arch 时发生错误:Invalid XML for View Architecture!<br />Traceback (most recent call last):<br />  File "/opt/oe7/openerp/netsvc.py", line 296, in dispatch_rpc<br />    result = ExportService.getService(service_name).dispatch(method, params)<br />  File "/opt/oe7/openerp/service/web_services.py", line 626, in dispatch<br />    res = fn(db, uid, *params)<br />  File "/opt/oe7/openerp/osv/osv.py", line 190, in execute_kw<br />    return self.execute(db, uid, obj, method, *args, **kw or {})<br />  File "/opt/oe7/openerp/osv/osv.py", line 132, in wrapper<br />    return f(self, dbname, *args, **kwargs)<br />  File "/opt/oe7/openerp/osv/osv.py", line 199, in execute<br />    res = self.execute_cr(cr, uid, obj, method, *args, **kw)<br />  File "/opt/oe7/openerp/addons/audittrail/audittrail.py", line 532, in execute_cr<br />    return fct_src(cr, uid, model, method, *args, **kw)<br />  File "/opt/oe7/openerp/osv/osv.py", line 187, in execute_cr<br />    return getattr(object, method)(cr, uid, *args, **kw)<br />  File "/opt/oe7/openerp/addons/base/module/module.py", line 426, in button_immediate_install<br />    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)<br />  File "/opt/oe7/openerp/addons/base/module/module.py", line 477, in _button_immediate_function<br />    _, pool = pooler.restart_pool(cr.dbname, update_module=True)<br />  File "/opt/oe7/openerp/pooler.py", line 39, in restart_pool<br />    registry = RegistryManager.new(db_name, force_demo, status, update_module)<br />  File "/opt/oe7/openerp/modules/registry.py", line 233, in new<br />    openerp.modules.load_modules(registry.db, force_demo, status, update_module)<br />  File "/opt/oe7/openerp/modules/loading.py", line 354, in load_modules<br />    loaded_modules, update_module)<br />  File "/opt/oe7/openerp/modules/loading.py", line 256, in load_marked_modules<br />    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)<br />  File "/opt/oe7/openerp/modules/loading.py", line 188, in load_module_graph<br />    load_data(module_name, idref, mode)<br />  File "/opt/oe7/openerp/modules/loading.py", line 76, in <lambda><br />    load_data = lambda *args: _load_data(cr, *args, kind='data')<br />  File "/opt/oe7/openerp/modules/loading.py", line 124, in _load_data<br />    tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)<br />  File "/opt/oe7/openerp/tools/convert.py", line 959, in convert_xml_import<br />    obj.parse(doc.getroot())<br />  File "/opt/oe7/openerp/tools/convert.py", line 852, in parse<br />    self._tags[rec.tag](self.cr, rec, n)<br />  File "/opt/oe7/openerp/tools/convert.py", line 819, in _tag_record<br />    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), mode=self.mode, context=rec_context )<br />  File "/opt/oe7/openerp/addons/base/ir/ir_model.py", line 971, in _update<br />    res_id = model_obj.create(cr, uid, values, context=context)<br />  File "/opt/oe7/openerp/addons/base/ir/ir_ui_view.py", line 103, in create<br />    return super(view, self).create(cr, uid, values, context)<br />  File "/opt/oe7/openerp/osv/orm.py", line 4551, in create<br />    self._validate(cr, user, [id_new], context)<br />  File "/opt/oe7/openerp/osv/orm.py", line 1562, in _validate<br />    raise except_orm('ValidateError', '\n'.join(error_msgs))<br />except_osv: ('ValidateError', u'\u9a8c\u8bc1\u5b57\u6bb5 arch \u65f6\u53d1\u751f\u9519\u8bef\uff1aInvalid XML for View Architecture!')<br />----<br />    请教各位大神指点,迷茫在OE7人力资源的薪资模块。。。



  • 在OE7-2014.7.28安装版上,安装l10n_cn_hr_payroll-trunk.1.0,提示报错,截图如下:<br />[img]http://xiangce.baidu.com/picture/detail/fb0425d6d63d7a2ae080a201026a113f5a07047b?from=dialog[/img]<br /><br />日志报错信息如下:<br />2014-08-04 02:03:23,880 2435 INFO Test1 openerp.modules.module: module l10n_cn_hr_payroll: creating or updating database tables<br />2014-08-04 02:03:23,916 2435 INFO Test1 openerp.modules.loading: module l10n_cn_hr_payroll: loading l10n_cn_hr_payroll_view.xml<br />2014-08-04 02:03:23,921 2435 WARNING Test1 openerp.addons.base.ir.ir_ui_view: Setting the type field is deprecated in the ir.ui.view model.<br />2014-08-04 02:03:23,974 2435 ERROR Test1 openerp.addons.base.ir.ir_ui_view: Can't render view  for model: hr.contract<br />Traceback (most recent call last):<br />  File "/opt/oe7/openerp/addons/base/ir/ir_ui_view.py", line 126, in _check_render_view<br />    fvg = self.pool.get(view.model).fields_view_get(cr, uid, view_id=view.id, view_type=view.type, context=context)<br />  File "/opt/oe7/openerp/osv/orm.py", line 2253, in fields_view_get<br />    arch=apply_view_inheritance(cr, user, source, sql_res['id']),<br />  File "/opt/oe7/openerp/osv/orm.py", line 2211, in apply_view_inheritance<br />    source = apply_inheritance_specs(source, view_arch, view_id)<br />  File "/opt/oe7/openerp/osv/orm.py", line 2195, in apply_inheritance_specs<br />    raise_view_error("Element '%s' not found in parent view '%%(parent_xml_id)s'" % tag, inherit_id)<br />  File "/opt/oe7/openerp/osv/orm.py", line 2088, in raise_view_error<br />    %  (child_view.xml_id, self._name, error_msg))<br />AttributeError: View definition error for inherited view '' on model 'hr.contract': Element '<xpath expr="/form/notebook/page[@name='information']/group[@name='right_column']/field[@name='struct_id']">' not found in parent view 'hr_contract.hr_contract_view_form'<br />2014-08-04 02:03:23,980 2435 ERROR Test1 openerp.tools.convert: Parse error in /opt/oe7/openerp/addons/l10n_cn_hr_payroll/l10n_cn_hr_payroll_view.xml:5: <br /><record id="hr_contract_form_l10n_cn_inherit" model="ir.ui.view"><br />            <field name="name">hr.contract.form.inherit</field><br />            <field name="model">hr.contract</field><br />            <field name="type">form</field><br />            <field name="priority">20</field><br />            <field name="inherit_id" ref="hr_contract.hr_contract_view_form"/><br />            <field name="arch" type="xml"><br />            <data><br />                <xpath expr="/form/notebook/page[@name='information']/group[@name='right_column']/field[@name='struct_id']" position="after"><br />                    <field name="pit_exemption_amount"/><br />                    <field name="social_insurance_amount"/><br />                </xpath><br />            </data><br />            </field><br />        </record><br />Traceback (most recent call last):<br />  File "/opt/oe7/openerp/tools/convert.py", line 852, in parse<br />    self._tags[rec.tag](self.cr, rec, n)<br />  File "/opt/oe7/openerp/tools/convert.py", line 819, in _tag_record<br />    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), mode=self.mode, context=rec_context )<br />  File "/opt/oe7/openerp/addons/base/ir/ir_model.py", line 971, in _update<br />    res_id = model_obj.create(cr, uid, values, context=context)<br />  File "/opt/oe7/openerp/addons/base/ir/ir_ui_view.py", line 103, in create<br />    return super(view, self).create(cr, uid, values, context)<br />  File "/opt/oe7/openerp/osv/orm.py", line 4551, in create<br />    self._validate(cr, user, [id_new], context)<br />  File "/opt/oe7/openerp/osv/orm.py", line 1562, in _validate<br />    raise except_orm('ValidateError', '\n'.join(error_msgs))<br />except_orm: ('ValidateError', u'\u9a8c\u8bc1\u5b57\u6bb5 arch \u65f6\u53d1\u751f\u9519\u8bef\uff1aInvalid XML for View Architecture!')<br />2014-08-04 02:03:23,981 2435 ERROR Test1 openerp.netsvc: ValidateError<br />验证字段 arch 时发生错误:Invalid XML for View Architecture!<br />Traceback (most recent call last):<br />  File "/opt/oe7/openerp/netsvc.py", line 296, in dispatch_rpc<br />    result = ExportService.getService(service_name).dispatch(method, params)<br />  File "/opt/oe7/openerp/service/web_services.py", line 626, in dispatch<br />    res = fn(db, uid, *params)<br />  File "/opt/oe7/openerp/osv/osv.py", line 190, in execute_kw<br />    return self.execute(db, uid, obj, method, *args, **kw or {})<br />  File "/opt/oe7/openerp/osv/osv.py", line 132, in wrapper<br />    return f(self, dbname, *args, **kwargs)<br />  File "/opt/oe7/openerp/osv/osv.py", line 199, in execute<br />    res = self.execute_cr(cr, uid, obj, method, *args, **kw)<br />  File "/opt/oe7/openerp/addons/audittrail/audittrail.py", line 532, in execute_cr<br />    return fct_src(cr, uid, model, method, *args, **kw)<br />  File "/opt/oe7/openerp/osv/osv.py", line 187, in execute_cr<br />    return getattr(object, method)(cr, uid, *args, **kw)<br />  File "/opt/oe7/openerp/addons/base/module/module.py", line 426, in button_immediate_install<br />    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)<br />  File "/opt/oe7/openerp/addons/base/module/module.py", line 477, in _button_immediate_function<br />    _, pool = pooler.restart_pool(cr.dbname, update_module=True)<br />  File "/opt/oe7/openerp/pooler.py", line 39, in restart_pool<br />    registry = RegistryManager.new(db_name, force_demo, status, update_module)<br />  File "/opt/oe7/openerp/modules/registry.py", line 233, in new<br />    openerp.modules.load_modules(registry.db, force_demo, status, update_module)<br />  File "/opt/oe7/openerp/modules/loading.py", line 354, in load_modules<br />    loaded_modules, update_module)<br />  File "/opt/oe7/openerp/modules/loading.py", line 256, in load_marked_modules<br />    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)<br />  File "/opt/oe7/openerp/modules/loading.py", line 188, in load_module_graph<br />    load_data(module_name, idref, mode)<br />  File "/opt/oe7/openerp/modules/loading.py", line 76, in <lambda><br />    load_data = lambda *args: _load_data(cr, *args, kind='data')<br />  File "/opt/oe7/openerp/modules/loading.py", line 124, in _load_data<br />    tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)<br />  File "/opt/oe7/openerp/tools/convert.py", line 959, in convert_xml_import<br />    obj.parse(doc.getroot())<br />  File "/opt/oe7/openerp/tools/convert.py", line 852, in parse<br />    self._tags[rec.tag](self.cr, rec, n)<br />  File "/opt/oe7/openerp/tools/convert.py", line 819, in _tag_record<br />    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), mode=self.mode, context=rec_context )<br />  File "/opt/oe7/openerp/addons/base/ir/ir_model.py", line 971, in _update<br />    res_id = model_obj.create(cr, uid, values, context=context)<br />  File "/opt/oe7/openerp/addons/base/ir/ir_ui_view.py", line 103, in create<br />    return super(view, self).create(cr, uid, values, context)<br />  File "/opt/oe7/openerp/osv/orm.py", line 4551, in create<br />    self._validate(cr, user, [id_new], context)<br />  File "/opt/oe7/openerp/osv/orm.py", line 1562, in _validate<br />    raise except_orm('ValidateError', '\n'.join(error_msgs))<br />except_osv: ('ValidateError', u'\u9a8c\u8bc1\u5b57\u6bb5 arch \u65f6\u53d1\u751f\u9519\u8bef\uff1aInvalid XML for View Architecture!')<br />----<br />    请教各位大神指点,迷茫在OE7人力资源的薪资模块。。。


登录后回复
 

与 Odoo 中文社区 的连接断开,我们正在尝试重连,请耐心等待