title: How to get odoo model from javascript?
body: <p>I'm trying to do a widget to attach to the sysTrayMenu, I need to know on the on_click event, the current model of the view. I know that I can get it from the current browser url, but I wanted to know if is there a cleaner way to get it from the odoo js api.</p>
  
  <p>For example if the user is in New quotation menu, I need to get sale.order</p>
  
  <pre><code>odoo.define('xx.systray', function (require) {
  "use strict";
  
  var config = require('web.config');
  var SystrayMenu = require('web.SystrayMenu');
  var Widget = require('web.Widget');
  var ajax = require('web.ajax');
  
  
  var xxMenu = Widget.extend({
      template:'solvo-support.helpMenu',
      events: {
          "click": "on_click",
      },
      on_click: function () {
  
  //HERE I NEED TO GET THE CURRENT MODEL 
      },
  });
  
  SystrayMenu.Items.push(xxMenu);
  
  });
  </code></pre>