title: Odoo: Action Error Could not find client action on (Odoo 9 / Open ERP)
body: <p>I have been working on developing a simple Odoo 9 plugin utilizing QWeb, and I have run into in issue where I am unable to successfully able to register/call an action from a .js file no matter what I do.</p>
  
  <p>The purpose of this simple app is simply to create a menu item, with a link that invokes an action. The menu creates successfully, but every time I attempt to invoke the action, I get the following error:</p>
  
  <p><img src="https://i.imgur.com/rAOStxF.jpg?1" alt="Error"></p>
  
  <p>The Javascript file attempts to register an action entitled <code>test.DoSomething</code> using the following code:</p>
  
  <pre><code>openerp.test = function(instance, local) {
      var _t = instance.web._t,
      _lt = instance.web._lt;
  
      instance.web.client_actions.add('test.DoSomething', 'instance.test.DoSomething');
      instance.test.DoSomething = instance.web.Widget.extend({
          start: function() {
              console.log("Doing Something!!!!");
          }
      });
  }
  </code></pre>
  
  <p>This is referenced from a <code>test.xml</code> file containing the following markup:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;openerp&gt;
      &lt;data&gt;
          &lt;template id="assets_backend" name="test" inherit_id="web.assets_backend"&gt;
              &lt;xpath expr="." position="inside"&gt;
              &lt;script type="text/javascript" src="/testapp/static/src/js/test.js"/&gt;
              &lt;/xpath&gt;
          &lt;/template&gt;
  
          &lt;menuitem id="main_testapp_menu" name="Test App" /&gt;
  
          &lt;menuitem id="testapp_menu" name="Test App"
          parent="main_testapp_menu" /&gt;
  
          &lt;record id="action_home_page" model="ir.actions.client"&gt;
              &lt;field name="name"&gt;Test Home Page&lt;/field&gt;
              &lt;field name="tag"&gt;test.DoSomething&lt;/field&gt;
          &lt;/record&gt;
  
          &lt;menuitem id="home_page_menu" name="Home Page" parent="testapp_menu"
          action="action_home_page"/&gt;
      &lt;/data&gt;
  &lt;/openerp&gt;
  </code></pre>
  
  <p>The <code>__openerp__.py</code> file contains this:</p>
  
  <pre><code>{
      'name' : 'testapp',
      'version': '1.0',
      'summary': 'testapp',
      'category': 'Tools',
      'author': 'Test',
      'description':
          """
  TEST APP
  ====================
  
  Simple test application for odoo
          """,
      'data': [
          'test.xml' 
      ],
      'depends' : ['web'],
      'application': True,
  }
  </code></pre>
  
  <p>Is there a newer/different way to register actions in Odoo 9? Even trying example code from Odoo 8 generates similar errors.</p>