我发现没有发现外部ID错误


ParseError: "External ID not found in the system: hr_contract.hr_hr_employee_view_form2" while parsing /opt/openerp/odoo/FMPay-Devlopment--master/hr_extended/hr_extended_view.xml:688, near
<record id="view_employee_rate_inherited_form" model="ir.ui.view">
            <field name="name">employee.inherited.rate.form</field>
            <field name="model">hr.employee</field>
            <field name="inherit_id" ref="hr_contract.hr_hr_employee_view_form2"/>
            <field name="arch" type="xml">
                <xpath expr="//group[@string='Contract']/field[@name='medic_exam']" position="before">
                        <field name="employee_type"/> 
                        <field name="reg_rate"/>
                </xpath>enter code here
            </field>
        </record>

这是我的代码。我遇到了这个错误。我不知道我必须检查的地方。

请在__openerp_.p文件中检查

in'deweds':['base','hr','hr_contract'],

引用在另一个模块中定义的任何视图ID,您应该对该模块具有依赖性。

请在 openerp .py文件中指定为devers键

的值
    {
      #all other things goes here
    'depends': [
          ####
          'hr_contract',
          ####
         ],
      #all other things goes here
   }

相关内容

最新更新