title: Making new simple module in OpenERP 6
body: <p>I've tutorial to make new simple module in <code>OpenERP 6</code>, I made 4 files :</p>
  
  <pre><code>1. __init__.py
  2. __openerp__.py
  3. sim.py
  4. sim_view.xml
  </code></pre>
  
  <p>when I've finished all, I had restarted my service of <code>OpenERP</code>, and then made a new database and refresh my <code>OpenERP</code>. Then I have logged in as administration ,but I found my module 'sim', but when I tried to instal it, there is an error <code>"NameError: name 'osv' is not defined".</code> whats wrong? </p>
  
  <p>Really need your help guys!</p>
  
  <p><code>__init__.py</code> :</p>
  
  <pre><code>import sim
  </code></pre>
  
  <p><code>sim.py</code> :</p>
  
  <pre><code>class student(osv.osv):
      _name = "sim.student"
      _description = "This table is for keeping personal data of student"
      _columns = {
          'name': fields.char('Registration Number',size=256,required=True),
          'student_name': fields.char('Student Name',size=256,required=True),
          'father_name': fields.char('Father Name',size=256),
          'gender':fields.selection([('male','Male'),('female','Female')],'Gender'),
          'contact_no':fields.char('Contact Number',size=256)
      }
  student()
  </code></pre>
  
  <p><code>__openerp__.py</code> :</p>
  
  <pre><code>{
  'name': 'Student Information Management',
  'version': '0.1',
  'category': 'Tools',
  'description': """This module is for the Student Information Management.""",
  'author': 'Mir Nauman&amp;nbsp;Tahir',
  'website': 'http://mirnauman.wordpress.com/',
  'depends': ['base'],
  'init_xml': [],
  'update_xml': ['sim_view.xml'],
  'demo_xml': [],
  'installable': True,
  }
  </code></pre>
  
  <p><code>sim_view.xml</code> :</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;openerp&gt;
  &lt;data&gt;
  &lt;!-- ============== student================= --&gt;
  &lt;!-- 1st part of the sim_view start--&gt;
  &lt;record model="ir.ui.view" id="student_form"&gt;
  &lt;field name="name"&gt;Student&lt;/field&gt;
  &lt;field name="model"&gt;sim.student&lt;/field&gt;
  &lt;field name="type"&gt;form&lt;/field&gt;
  &lt;field name="arch" type="xml"&gt;
  &lt;form string="Student"&gt;
  &lt;field name="name"/&gt;
  &lt;field name="student_name"/&gt;
  &lt;field name="father_name"/&gt;
  &lt;field name="gender"/&gt;
  &lt;field name="contact_no"/&gt;
  &lt;/form&gt;
  &lt;/field&gt;
  &lt;/record&gt;
  &lt;!-- 1st part of the sim_view end--&gt;
  &lt;!--2nd part of the sim_view start--&gt;
  &lt;record model="ir.ui.view" id="student_tree"&gt;
  &lt;field name="name"&gt;Student&lt;/field&gt;
  &lt;field name="model"&gt;sim.student&lt;/field&gt;
  &lt;field name="type"&gt;tree&lt;/field&gt;
  &lt;field name="arch" type="xml"&gt;
  &lt;tree string="Student"&gt;
  &lt;field name="name"/&gt;
  &lt;field name="student_name"/&gt;
  &lt;field name="father_name"/&gt;
  &lt;field name="gender"/&gt;
  &lt;field name="contact_no"/&gt;
  &lt;/tree&gt;
  &lt;/field&gt;
  &lt;/record&gt;
  &lt;!--2nd part of the sim_view end--&gt;
  &lt;!-- 3rd part of the sim_view start--&gt;
  &lt;record model="ir.actions.act_window" id="action_student"&gt;
  &lt;field name="name"&gt;Student&lt;/field&gt;
  &lt;field name="res_model"&gt;sim.student&lt;/field&gt;
  &lt;field name="view_type"&gt;form&lt;/field&gt;
  &lt;field name="view_mode"&gt;tree,form&lt;/field&gt;
  &lt;/record&gt;
  &lt;!--3rd part of the sim_view end--&gt;
  &lt;!--4th part of the sim_view start--&gt;
  &lt;menuitem&amp;nbsp;name="SIM/Student/StudentInfo" id="menu_sim_student" action="action_student"/&gt;
  &lt;!--4th part of the sim_view end--&gt;
  &lt;/data&gt;
  &lt;/openerp&gt;
  </code></pre>