跳至內容
選單
此問題已被標幟
2717 瀏覽次數

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 

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
5月 23
3254
1
1月 23
8037
2
7月 22
12508
1
12月 20
7596
1
8月 19
4451