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,提示报错,截图如下:
    [img]http://xiangce.baidu.com/picture/detail/fb0425d6d63d7a2ae080a201026a113f5a07047b?from=dialog[/img]

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



  • 在OE7-2014.7.28安装版上,安装l10n_cn_hr_payroll-trunk.1.0,提示报错,截图如下:
    [img]http://xiangce.baidu.com/picture/detail/fb0425d6d63d7a2ae080a201026a113f5a07047b?from=dialog[/img]

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


登录后回复
 

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