98 lines
3.7 KiB
XML
98 lines
3.7 KiB
XML
<odoo>
|
|
<!-- Core's Apps action defaults to the "Apps" (application = True), which hides
|
|
bundles because they're not applications. Open on the Bundles panel instead. -->
|
|
<record id="base.open_module_tree" model="ir.actions.act_window">
|
|
<field name="context">{'searchpanel_default_module_type': 'bundles'}</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="module_view_kanban_apps_inherit">
|
|
<field name="name">Apps Kanban Data Modules</field>
|
|
<field name="model">ir.module.module</field>
|
|
<field
|
|
name="inherit_id"
|
|
ref="base_import_module.module_view_kanban_apps_inherit"
|
|
/>
|
|
<field name="arch" type="xml">
|
|
<xpath
|
|
expr="//button[@name='button_immediate_install_app'][1]"
|
|
position="attributes"
|
|
>
|
|
<attribute
|
|
name="invisible"
|
|
>state != 'uninstalled' or module_type in ('official','bundles', False)
|
|
</attribute>
|
|
</xpath>
|
|
<xpath
|
|
expr="//button[@name='button_immediate_install_app'][2]"
|
|
position="attributes"
|
|
>
|
|
<attribute
|
|
name="invisible"
|
|
>state == 'uninstalled' or module_type in ('official','bundles', False)
|
|
</attribute>
|
|
</xpath>
|
|
<xpath
|
|
expr="//button[@name='button_immediate_install']"
|
|
position="attributes"
|
|
>
|
|
<attribute
|
|
name="invisible"
|
|
>state != 'uninstalled' or (module_type and module_type not in
|
|
('official','bundles'))
|
|
</attribute>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="module_form_apps_inherit">
|
|
<field name="name">Apps</field>
|
|
<field name="model">ir.module.module</field>
|
|
<field name="inherit_id" ref="base_import_module.module_form_apps_inherit" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//page[@name='technical_data']" position="attributes">
|
|
<attribute
|
|
name="invisible"
|
|
>module_type not in ('official','bundles')</attribute>
|
|
</xpath>
|
|
<xpath
|
|
expr="//button[@name='button_immediate_install_app'][1]"
|
|
position="attributes"
|
|
>
|
|
<attribute
|
|
name="invisible"
|
|
>state != 'uninstalled' or module_type in ('official','bundles', False)
|
|
</attribute>
|
|
</xpath>
|
|
<xpath
|
|
expr="//button[@name='button_immediate_install_app'][2]"
|
|
position="attributes"
|
|
>
|
|
<attribute
|
|
name="invisible"
|
|
>state == 'uninstalled' or module_type in ('official','bundles', False)
|
|
</attribute>
|
|
</xpath>
|
|
<xpath
|
|
expr="//button[@name='button_immediate_install']"
|
|
position="attributes"
|
|
>
|
|
<attribute
|
|
name="invisible"
|
|
>to_buy or state != 'uninstalled' or (module_type and module_type not in
|
|
('official','bundles'))
|
|
</attribute>
|
|
</xpath>
|
|
<xpath
|
|
expr="//button[@name='button_immediate_upgrade']"
|
|
position="attributes"
|
|
>
|
|
<attribute
|
|
name="invisible"
|
|
>state == 'uninstalled' or (module_type and module_type not in
|
|
('official','bundles'))
|
|
</attribute>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|