字段
insurance_primary_wage
不存在错误上下文:视图
hr.contract.form
[view_id:466,xml_id: Egy_Salary_Insurance.hr_contract_view_form,模型:hr.contract, parent_id:n / a]“无” /home/whammam/Odoo12/extra/Egy_Salary_Insurance/views/hr_contract_insurance_views.xml:4, 靠近<record id="hr_contract_view_form" model="ir.ui.view"> <field name="name">hr.contract.form</field> <field name="model">hr.contract</field> <field name="arch" type="xml"> <form string="Current Contract"> <sheet> <notebook> <page string="Salary Information" name="information"> <group name="main_info"> <group name="salary_and_advantages" string="Monthly Advantages in Cash"> <label for="wage"/> <div class="o_row" name="wage"> <field name="wage" nolabel="1"/> <span>/ month</span> <field name="insurance_primary_wage"/> <field name="insurance_variable_wage"/> <field name="total_insurance_wage"/> <field name="insurance_subscription"/> </div> <field name="advantages" nolabel="1" placeholder="Advantages..." colspan="2" invisible="1"/> </group> </group> </page> </notebook> </sheet> </form> </field> </record>
答案 0 :(得分:0)
您的模型“ hr.contract”缺少“ insurance_primary_wage”字段。
如果没有您的任何代码,很难确定此问题的根本原因。在我看来,您没有在添加这些字段的位置导入python文件。您是否在“ / home / whammam / Odoo12 / extra / Egy_Salary_Insurance / models”中添加了 init .py文件?