title: Unable to Inherit HR.Employee in OpenERP
body: <p>Please show me where my mistake is. I need to add a new field called <code>kanganyname</code> (manager name). But it's giving me an error. I followed the developer guide and done this modification:</p>
  
  <p>Here is my view.xml</p>
  
  <pre><code>&lt;record model="ir.ui.view" id="namelist_dailyupdate"&gt;
      &lt;field name="name"&gt;checkroll.daily.update.form&lt;/field&gt;
      &lt;field name="model"&gt;checkroll.daily.update&lt;/field&gt;
      &lt;field name="inherit_id" ref="hr.view_employee_form" /&gt;
      &lt;field name="type"&gt;form&lt;/field&gt;
      &lt;field name="arch" type="xml"&gt;
          &lt;form string="daily_update"&gt;
              &lt;field name="kanganyname" /&gt;
          &lt;/form&gt;
      &lt;/field&gt;
  &lt;/record&gt;
  
  &lt;record model="ir.actions.act_window" id="action_inherit_ex"&gt;
      &lt;field name="name"&gt;checkroll.daily.update.form&lt;/field&gt;
      &lt;field name="model"&gt;checkroll.daily.update&lt;/field&gt;
      &lt;field name="view_type"&gt;form&lt;/field&gt;
      &lt;field name="view_mode"&gt;form&lt;/field&gt;
  &lt;/record&gt;
  </code></pre>
  
  <p>Here is my model class.</p>
  
  <pre><code>class dailyupdate(osv.osv):
      _name = "checkroll.daily.update"
      _inherit = "hr.employee"
      _description = "This table is for daily update"
      _columns = {
          'kanganyname': fields.char('Kangany Name', size=256, required=True)
      }
  
  dailyupdate()
  </code></pre>
  
  <p>Here is my error:</p>
  
  <blockquote>
    <p>Traceback (most recent call last):<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/sql_db.py", line 226, in execute<br>
           res = self._obj.execute(query, params)<br>
       IntegrityError: null value in column "res_model" violates not-null constraint<br>
       <br>
       2013-03-18 04:10:16,830 4709 ERROR OpenERP_DB openerp.tools.convert: Parse error in /home/priyan/Software/openerp-7.0-20130309-002120/openerp/addons/checkroll/checkroll_view.xml:179: <br>
       <br>
                   checkroll.daily.update.form<br>
                   checkroll.daily.update<br>
                   form<br>
                   form<br>
               <br>
       Traceback (most recent call last):<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/tools/convert.py", line 847, in parse<br>
           self._tags[rec.tag](self.cr, rec, n)<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/tools/convert.py", line 814, 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 "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/addons/base/ir/ir_model.py", line 964, in _update<br>
           res_id = model_obj.create(cr, uid, values, context=context)<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/osv/orm.py", line 4434, in create<br>
           cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/sql_db.py", line 161, in wrapper<br>
           return f(self, *args, **kwargs)<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/sql_db.py", line 226, in execute<br>
           res = self._obj.execute(query, params)<br>
       IntegrityError: null value in column "res_model" violates not-null constraint<br>
       <br>
       2013-03-18 04:10:16,835 4709 ERROR OpenERP_DB openerp.netsvc: null value in column "res_model" violates not-null constraint<br>
       Traceback (most recent call last):<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/netsvc.py", line 293, in dispatch_rpc<br>
           result = ExportService.getService(service_name).dispatch(method, params)<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/service/web_services.py", line 425, in dispatch<br>
           return fn(*params)<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/service/web_services.py", line 436, in exp_authenticate<br>
           res_users = pooler.get_pool(db).get('res.users')<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/pooler.py", line 49, in get_pool<br>
           return get_db_and_pool(db_name, force_demo, status, update_module)[1]<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/pooler.py", line 33, in get_db_and_pool<br>
           registry = RegistryManager.get(db_name, force_demo, status, update_module)<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/modules/registry.py", line 192, in get<br>
           update_module)<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/modules/registry.py", line 218, in new<br>
           openerp.modules.load_modules(registry.db, force_demo, status, update_module)<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/modules/loading.py", line 344, in load_modules<br>
           processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules, update_module)<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/modules/loading.py", line 259, 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 "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/modules/loading.py", line 190, in load_module_graph<br>
           load_update_xml(module_name, idref, mode)<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/modules/loading.py", line 74, in <br>
           load_update_xml = lambda *args: _load_data(cr, *args, kind='update_xml')<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/modules/loading.py", line 127, in _load_data<br>
           tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/tools/convert.py", line 954, in convert_xml_import<br>
           obj.parse(doc.getroot())<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/tools/convert.py", line 847, in parse<br>
           self._tags[rec.tag](self.cr, rec, n)<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/tools/convert.py", line 814, 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 "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/addons/base/ir/ir_model.py", line 964, in _update<br>
           res_id = model_obj.create(cr, uid, values, context=context)<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/osv/orm.py", line 4434, in create<br>
           cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/sql_db.py", line 161, in wrapper<br>
           return f(self, *args, **kwargs)<br>
         File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/sql_db.py", line 226, in execute<br>
           res = self._obj.execute(query, params)<br>
       IntegrityError: null value in column "res_model" violates not-null constraint<br>
       <br>
       2013-03-18 04:10:16,847 4709 INFO OpenERP_DB werkzeug: 127.0.0.1 - - [18/Mar/2013 04:10:16] "POST /web/session/authenticate HTTP/1.1" 200 -</p>
  </blockquote>