[ADD] module_usability

This commit is contained in:
David Beal
2016-03-16 09:35:39 +01:00
parent d794e3fcd2
commit d90bd9dd8e
4 changed files with 50 additions and 0 deletions

View File

View File

@@ -0,0 +1,29 @@
# coding: utf-8
# © 2016 Akretion
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Module Usability',
'version': '0.8',
'category': 'Base',
'summary': "Module views improved",
'description': """
Remove 'Application' filter, add group by 'State'
Why this module ?
- We don't install Applications modules directly but install lower level modules first
- We must take care of modules state: it's a really precious information
Contributors: David BEAL
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': [
'base',
],
'data': [
'view.xml',
],
'installable': True,
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B

21
module_usability/view.xml Normal file
View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_module_filter" model="ir.ui.view">
<field name="model">ir.module.module</field>
<field name="inherit_id" ref="base.view_module_filter"/>
<field name="arch" type="xml">
<xpath expr="//filter[@string='Category']" position="after">
<filter string="State" domain="[]" context="{'group_by':'state'}"/>
</xpath>
</field>
</record>
<record id="base.open_module_tree" model="ir.actions.act_window">
<field name="res_model">ir.module.module</field>
<field name="context">{}</field>
</record>
</data>
</openerp>