title: raise ValueError('External ID not found in the system: %s' % xmlid)
body: <p>I am trying to create a module for "Daily Transaction" and getting a <code>ValueError</code></p>
  
  <blockquote>
  <pre><code>    value = d[key] = self.method(*args, **kwargs)
    File "/home/odoo/odoo-dev/odoo/odoo/addons/base/ir/ir_model.py", line 1028, in xmlid_lookup
      raise ValueError('External ID not found in the system: %s' % xmlid)
  ParseError: "External ID not found in the system: daily_transaction.action_daily_transaction" while parsing /home/odoo/odoo-dev/custom-addons/daily_transaction/daily_transaction_view.xml:11, near &lt;menuitem action="action_daily_transaction" id="menu_action_daily_transaction" parent="menu_daily_transaction_root" sequence="20"/&gt;
  </code></pre>
  </blockquote>
  
  <p>My file Structure: (One with Bold are my file names)</p>
  
  <p><strong>__init__.py</strong></p>
  
  <pre><code>from import daily_transaction
  </code></pre>
  
  <p><strong>__manifest__.py</strong></p>
  
  <pre><code>{
          'name':'Daily Transaction Manager',
          'version':'1.0',
          'description':'**********************This app will keep the record of all the tansactions happening*********',
          'author':'Test',
          'data':['daily_transaction_view.xml'],
          'installable':True,
          'auto_install':False,
  }
  </code></pre>
  
  <p><strong>daily_transaction.py</strong></p>
  
  <pre><code>from . import fields,osv
  
  class daily_transaction(osv.osv):
          _name = 'daily.transaction'
          _description = 'Daily Transaction'
          _columns = {
  
                  'subject': fields.char('Subject', size=128, required = True),
                  'data' : fields.data('Date', required = True),
                  'note': fields.text('Notes'),
                  'amount': fields.float('Amount', required = True),
                  'type' : fields.selection([
                          ('transport','Transport'),
                          ('household','Household'),
                          ('personal','Personal'),
                          ],
                          'Type', required = True),
                          }
  </code></pre>
  
  <p><strong>daily_transaction_view.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;odoo&gt;
  &lt;data&gt;
  
  &lt;!-- Main Menu Related Info --&gt;        
  &lt;menuitem name="Daily Transaction" id="base.daily_transaction_root"            sequence="60"/&gt;
  &lt;!-- Sub Menu Related Info --&gt;       
  &lt;menuitem id="menu_daily_transaction_root" name="Daily Transaction"            parent="base.daily_transaction_root" sequence="1" /&gt; 
  &lt;!-- Action Menu Related Info --&gt;       
  &lt;menuitem action="action_daily_transaction" id="menu_action_daily_transaction" parent="menu_daily_transaction_root" sequence="20"/&gt;
  
  &lt;!--Daily Transaction List View--&gt;    
  &lt;record id="view_daily_transaction_tree" model="ir.ui.view"&gt;  &lt;!-- here id is the external id for this tree view which must be unique and will be used for accessing this record --&gt;
  &lt;field name="name"&gt;daily.transaction.tree&lt;/field&gt; &lt;!-- this will be our name of record in ir.ui.view --&gt;        
  &lt;field name="model"&gt;daily.transaction&lt;/field&gt;    &lt;!-- this will map out tree view with our daily transaction model --&gt;
  &lt;field name="arch" type="xml"&gt;           
   &lt;!-- this will be our title of list/tree view --&gt;            
  &lt;tree string="Daily Transaction"&gt;               
   &lt;!-- these will automatically map table headers for our list view, so we’ll select out column names of our model here --&gt;               
   &lt;field name="name"/&gt;              
   &lt;field name="date"/&gt;              
   &lt;field name="type"/&gt;               
  &lt;field name="amount"/&gt;                   
  &lt;/tree&gt;       
  &lt;/field&gt;
  &lt;/record&gt;
  
  
  &lt;!--Daily Transaction Form View--&gt;    
  &lt;record id="view_daily_transaction_form" model="ir.ui.view"&gt;        
  &lt;field name="name"&gt;daily.transaction.form.view&lt;/field&gt;        
  &lt;field name="model"&gt;daily.transaction&lt;/field&gt;        
  &lt;field name="arch" type="xml"&gt;            
  &lt;!-- this will be our title of list/tree view --&gt;            
  &lt;form string="Daily Transaction" version="7.0"&gt;                
  &lt;group&gt;                    
  &lt;field name="name"/&gt;                    
  &lt;field name="date"/&gt;                    
  &lt;field name="type"/&gt;                     
  &lt;field name="amount"/&gt;                     
  &lt;field name="note"/&gt;                                   
  &lt;/group&gt;             
  &lt;/form&gt;        
  &lt;/field&gt;    
  &lt;/record&gt;
  
  &lt;record id="action_daily_transaction" model="ir.actions.act_window"&gt;        
  &lt;field name="name"&gt;Daily Transaction&lt;/field&gt;        &lt;!-- name of action --&gt;
  &lt;field name="res_model"&gt;daily.transaction&lt;/field&gt;        &lt;!-- this action will be mapped to model specified --&gt;
  &lt;field name="view_type"&gt;form&lt;/field&gt;        
  &lt;field name="view_mode"&gt;tree,form&lt;/field&gt;        &lt;!-- these are type of view our module will show for our daily transaction mode  --&gt;
  &lt;field name="search_view_id"  eval="False"/&gt;        &lt;!-- here we specify id of our search view --&gt;
  &lt;field name="context"&gt;{}&lt;/field&gt;        
  &lt;field name="help"&gt;Create new daily transaction.&lt;/field&gt;    &lt;!-- help text for our model --&gt;
  &lt;/record&gt;
  
  &lt;/data&gt;
  &lt;/odoo
  </code></pre>