title: odoo 10 javascript widget not working: Could not find client action 'petstore.homepage'
body: <p>I took the oepetstore code from github and modified it to suit odoo10 however it is giving me error as <code>Could not find client action 'petstore.homepage'</code>. In the manifest file I have included all the xml files. code mentioned in github works for odoo9 but not for 10.</p>
  
  <p>petstore.js,</p>
  
  <pre class="lang-js prettyprint-override"><code>odoo.define('oepetstore.petstore', function (require) {
  "use strict";
      var Class = require('web.Class');
      var Widget = require('web.Widget');
      var core = require('web.core');
      var utils = require('web.utils');
      var _t = core._t;
      var _lt = core._lt;
  
      var homePage = Widget.extend({
          init: function(parent) {
              this._super(parent);
              console.log("Hello JS, I'm inside of init.");
          },
          start: function() {
              console.log("Your pet store home page loaded");
          },
      });
      core.view_registry.add('petstore', homePage);
  
  });
  </code></pre>
  
  <p>petstore.xml,</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;odoo&gt;
      &lt;data&gt;
          &lt;template id="assets_backend" name="petstore_assets" inherit_id="web.assets_backend"&gt;
              &lt;xpath expr="." position="inside"&gt;
                  &lt;link rel="stylesheet" href="/oepetstore/static/src/css/petstore.css"/&gt;
                  &lt;script type="text/javascript" src="/oepetstore/static/src/js/petstore.js"/&gt;
              &lt;/xpath&gt;
          &lt;/template&gt;
  
          &lt;menuitem id="main_petstore_menu" name="Pet Store" /&gt;
  
          &lt;menuitem id="petstore_menu" name="Pet Store"
              parent="main_petstore_menu" /&gt;
  
          &lt;record id="action_home_page" model="ir.actions.client"&gt;
              &lt;field name="name"&gt;petstore&lt;/field&gt;
              &lt;field name="tag"&gt;petstore&lt;/field&gt;
          &lt;/record&gt;
  
          &lt;menuitem id="home_page_petstore_menu" name="Home Page" parent="petstore_menu"
              action="action_home_page"/&gt;
      &lt;/data&gt;
  &lt;/odoo&gt;
  </code></pre>