How to display only my costumes (created ) modules in Odoo (OpenERP)

时间:2017-06-19 14:06:23

标签: openerp odoo-8 odoo-9

I would like to show only my custom module in Odoo interface, without displaying other Odoo Modules.

I have tried to assign my module to the user ( in user settings interface) and hidde other modules to him. But when the user login he see only the Web module, without the other modules.

For example:

I Odoo menu you can see the names of modules like : Sales, Calender ...etc

My goal is to hidde all module to users, and display only my module ( my costum module)

Any help please ... Thank you

1 个答案:

答案 0 :(得分:0)

继承模块列表的操作并添加域

尝试以下代码:

<record id="open_module_tree" model="ir.actions.act_window">
        <field name="name">Apps</field>
        <field name="res_model">ir.module.module</field>
        <field name="view_type">form</field>
        <field name="view_mode">kanban,tree,form</field>
        <field name="domain">[('name,'=','your_module_name')]</field>
        <field name="context">{'search_default_app':1}</field>
        <field name="search_view_id" ref="view_module_filter"/>
        <field name="help" type="html">
          <p><b>No module found!</b></p>
          <p>You should try other search criteria.</p>
        </field>
    </record>

希望它会对你有所帮助。