follow the documentation Odoo 9.0, I created a new module which I created a new model as follows:
models.py
# -*- coding: utf-8 -*-
from openerp import models, fields, api
class payModel(models.Model):
_name = 'payModel.payModel'
_inherit = 'hr.employee'
num_CN = fields.Char("CN°")
and my form view:
<record model="ir.ui.view" id="payModel_form_view">
<field name="name">payModel.num_CN</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<data>
<xpath expr="//field[@name='bank_account_id']" position="after">
<field name="num_CN"/>
</xpath>
</data>
</field>
</record>
I verirfy in Settings -> Technical -> Database Structure -> Models that the model and the field were added by success But I get this error :
the num_CN does not exist
I try to add this field in employee form view by developer mode but I get the same error!
Can sameone help me what's missing?