odoo 为菜单添加图标

    <menuitem name="Inventory" id="menu_stock_root" sequence="30"
        groups="group_stock_manager,group_stock_user"
        web_icon="stock,static/description/icon.png"/>

图标设置:
web_icon="stock,static/description/icon.png
其中stock为模块名称,static/description/icon.png 为图标路径

猜你喜欢

转载自www.cnblogs.com/qianxunman/p/12922428.html