title: Is it possible to get the xml_id from JS code in Odoo?
body: <p>I am trying to get a specific menuitem and store it in a variable in JavaScript:</p>
  
  <pre><code>var Menus = new openerp.web.Model('ir.ui.menu');
  </code></pre>
  
  <p>Now, we can apply a filter to <code>Menus</code> to get the menuitem, for example, look for its name, but the thing is that there are a lot of menuitems with the same name. So I think that the only attribute which identifies my menuitem and differences it from the other is the XML ID.</p>
  
  <p>But I do not know how to get it from JavaScript code. Is there any built function to obtain it? How can I manage my purpose?</p>