title: Error occured while adding security to a module in openerp
body: <p>I have created a new module in openerp now I want to give security for the module for that I have created a folder named "security" inside my module folder and created a xml file and ir.model.access.csv file in it.My aim is I want to create two roles for my module one is manager and other is user.
   for that I have added the below code in the xml file</p>
  
  <pre><code>&lt;record id="group_mat_mgmt_user" model="res.groups"&gt;
          &lt;field name="name"&gt;User&lt;/field&gt;
          &lt;field name="category_id" ref="base.module_category_mat_mgmt"/&gt;
          &lt;field name="implied_ids" eval="[(4, ref('base.group_user'))]"/&gt;
      &lt;/record&gt;
      &lt;record id="group_mat_mgmt_manager" model="res.groups"&gt;
          &lt;field name="name"&gt;Manager&lt;/field&gt;
          &lt;field name="category_id" ref="base.module_category_mat_mgmt"/&gt;
          &lt;field name="implied_ids" eval="[(4, ref('group_mat_mgmt_user'))]"/&gt;
          &lt;field name="users" eval="[(4, ref('base.user_root'))]"/&gt;
      &lt;/record&gt;
  </code></pre>
  
  <p>At the view part I have added like this </p>
  
  <pre><code>&lt;menuitem name="Materials Management" id="menu_mat_mgmt_root"
          groups="group_mat_mgmt_manager,group_mat_mgmt_user"
          sequence="80"/&gt;
  </code></pre>
  
  <p>then the permission given at the csv but i got an error like this</p>
  
  <blockquote>
    <p>File
    "C:\OpenErp\openerp\openobject-server\openerp\addons\base\ir\ir_model.py",
    line 850, in _get_id    raise ValueError('No such external ID
    currently defined in the system: %s.%s' % (module, xml_id)) alueError:
    No such external ID currently defined in the system:
    mat_mgmt.group_mat_mgmt_manager</p>
  </blockquote>