Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2693 Ansichten

hello i use jqury to append icon to the specific menuitem but not showing anything this is my js file :

odoo.define('my_module_name.AddMenuIcon', function (require) {    'use strict';    varAppsMenu = require('web.AppsMenu');    var Menu = require('web.Menu');    var core = require('web.core');    var QWeb = core.qweb;    var session = require('web.session');
    Menu.include({        start:function () {              va rself = this;
               
                var $menu_item = this.$('.o_menu_sections').find('a[data-menu="229"]').find('span')                $menu_item.append(' ');                                return this._super.apply(this, arguments);        },    });    return {        'Menu':Menu,    };});


i add the js file to the aaset.backend but not showing anything thank's 

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Mai 23
3166
1
Jan. 23
7999
2
Juli 22
12461
1
Dez. 20
7528
1
Aug. 19
4414