Browse Source
[IMP] generate a real link to open in new tab
pull/998/head
Holger Brunn
7 years ago
No known key found for this signature in database
GPG Key ID: 1C9760FECA3AE18
2 changed files with
4 additions and
2 deletions
-
web_shortcut/static/src/js/web_shortcut.js
-
web_shortcut/static/src/xml/web_shortcut.xml
|
|
@ -26,7 +26,9 @@ odoo.define('web.shortcut', function (require) { |
|
|
|
var self = this; |
|
|
|
this._super(); |
|
|
|
this.trigger('load'); |
|
|
|
this.$el.on('click', '.oe_systray_shortcut_menu a', function () { |
|
|
|
this.$el.on('click', '.oe_systray_shortcut_menu a', function (e) { |
|
|
|
e.preventDefault(); |
|
|
|
e.stopPropagation(); |
|
|
|
self.click($(this)); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
@ -10,7 +10,7 @@ |
|
|
|
</t> |
|
|
|
<t t-name="Systray.ShortcutMenu.Item"> |
|
|
|
<li> |
|
|
|
<a href="#" t-att-data-id="shortcut.menu_id[0]" t-att-data-shortcut-id="shortcut.id"> |
|
|
|
<a t-attf-href="/web#menu_id={{shortcut.menu_id[0]}}" t-att-data-id="shortcut.menu_id[0]" t-att-data-shortcut-id="shortcut.id"> |
|
|
|
<t t-esc="shortcut.name"/> |
|
|
|
</a> |
|
|
|
</li> |
|
|
|