Odoo 10:自定义模块不会在安装后出现在顶部黑色菜单中 [英] Odoo 10 : Custom module doesn't appear in top black menu after installation

查看:99
本文介绍了Odoo 10:自定义模块不会在安装后出现在顶部黑色菜单中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个自定义模块,其菜单项如下:

I created a custom module which menuitems are like this :

 <record id="view_sim_tree" model="ir.ui.view">
        <field name="name">Sim Tree</field>
        <field name="model">simcard.simcard</field>
        <field name="priority" eval="1" />
        <field name="arch" type="xml">
            <tree string="Sim Tree">
                <!-- <button name="open_something" string="Confirmer le pointage" type="object" /> -->
                <!-- <field name="id" /> -->
                <field name="icc" />
                <field name="imsi" />
                <field name="msisdn" />
                <field name="id" />
                <field name="sim_model" />
                <field name="lte_status" />
                <field name="life_cycle_status" />
            </tree>

        </field>
    </record>

 <record model="ir.actions.act_window" id="view_sim">
        <field name="name">Sim Details</field>
        <field name="res_model">simcard.simcard</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
        <field name="domain">[]</field>
        <field name="help" type="html">
            <p class="oe_view_nocontent_create">Well, Well, Well You can stop!
            </p>
        </field>
    </record>

 <!-- Top menu item -->
        <menuitem id="simcard.menu_root" name="Simcard" sequence="2"  />
        <!-- menu categories -->
        <menuitem id="simcard.sim" name="Sim" parent="simcard.menu_root" action="view_sim" sequence="1" />

此模块已安装,没有任何错误.但是它并没有出现在odoo的顶部菜单中,在该菜单中可以访问所有其他模块.我认为是因为序列号问题.我试图更改序列号,但仍未出现在顶部菜单中.任何人都知道该怎么办?

This module gets installed without any error. But it doesn't appear in the top menu of odoo where all the other modules are accessible. I think its because of the sequence number problem. I tried to change the sequence number but still it doesn't appear in top menu. Anyone has any idea what to do?

推荐答案

尝试为菜单操作目标模型创建安全性访问记录,以将这些模型与可以将其分配给用户的现有或自定义新组相关联.这就是为什么您什么都看不到的原因

Try to create the security access records for the menu actions target models to be associated with existing or custom new groups that you could assign it to the users. That's why you aren't seeing anything

这篇关于Odoo 10:自定义模块不会在安装后出现在顶部黑色菜单中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆