IMP make module filter to installable

This commit is contained in:
David Beal
2017-08-16 13:45:12 +02:00
committed by Raphaël Valyi
parent d0b02c6ae2
commit f91738176a
2 changed files with 5 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ By default, users in the Partner Contact group also have create/write access on
It also adds a log message at INFO level when sending an email via SMTP.
It displays the local modules by default in tree view (instead of Kanban) without filter.
It displays the local modules with installable filter.
A group by 'State' is added to module search view.
""",
'author': 'Akretion',

View File

@@ -11,6 +11,9 @@
<field name="model">ir.module.module</field>
<field name="inherit_id" ref="base.view_module_filter"/>
<field name="arch" type="xml">
<xpath expr="//filter[@name='extra']" position="after">
<filter name="installable" string="Installable" domain="[('state', '!=', 'uninstallable')]"/>
</xpath>
<group expand="0" position="inside">
<filter name="state_groupby" string="State" context="{'group_by': 'state'}"/>
</group>
@@ -18,7 +21,7 @@
</record>
<record id="base.open_module_tree" model="ir.actions.act_window">
<field name="context">{}</field>
<field name="context">{'search_default_installable': 1}</field>
</record>
</odoo>