[IMP] Relooking of the modules vignette, the Kanban view is now the default view for the module screen.
bzr revid: mit@openerp.com-20111207185058-xb5b4z8cz0zd6gla
This commit is contained in:
@@ -99,5 +99,7 @@
|
||||
'installable': True,
|
||||
'active': True,
|
||||
'certificate': '0076807797149',
|
||||
"js": [ 'static/src/js/modules.js' ],
|
||||
"css": [ 'static/src/css/modules.css' ],
|
||||
}
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
@@ -62,34 +62,30 @@
|
||||
<field name="model">ir.module.module</field>
|
||||
<field name="type">kanban</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban>
|
||||
<field name="name"/>
|
||||
<field name="icon"/>
|
||||
<field name="complexity"/>
|
||||
<field name="category_id"/>
|
||||
<field name="state"/>
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<img src="/web/static/src/img/header-preferences.png"/>
|
||||
</td><td>
|
||||
<field name="name"/><br/>
|
||||
<field name="category_id"/><br/>
|
||||
<field name="complexity"/><br/>
|
||||
<field name="state"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
|
||||
<kanban>
|
||||
<field name="icon"/>
|
||||
<field name="state"/>
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<img t-if="record.icon.value" src="#{record.icon.value}.png" class="module-icon"/>
|
||||
<img t-if="!record.icon.value" src="/web/static/src/img/header-preferences.png" class="module-icon"/>
|
||||
<div class="module-desc">
|
||||
<h4><field name="shortdesc"/></h4>
|
||||
<p>
|
||||
<field name="category_id"/><br/>
|
||||
Complexity: <field name="complexity"/>
|
||||
</p>
|
||||
<a type="object" name="button_install" states="uninstalled" class="button">Install</a>
|
||||
<button t-if="record.state.raw_value == 'installed'" class="label" disabled="disabled">Installed</button>
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
|
||||
<record id="action_module_open_categ" model="ir.actions.act_window">
|
||||
<field name="name">Modules</field>
|
||||
<field name="res_model">ir.module.module</field>
|
||||
@@ -194,7 +190,7 @@
|
||||
<field name="name">Modules</field>
|
||||
<field name="res_model">ir.module.module</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form,kanban</field>
|
||||
<field name="view_mode">kanban,tree,form</field>
|
||||
<field name="domain"/>
|
||||
<field name="search_view_id" ref="view_module_filter"/>
|
||||
<field name="help">You can install new modules in order to activate new features, menu, reports or data in your OpenERP instance. To install some modules, click on the button "Install" from the form view and then click on "Start Upgrade".</field>
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
.module-icon, .module-desc {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.module-icon {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
padding: 0 4px;
|
||||
}
|
||||
|
||||
.module-desc {
|
||||
width: 220px;
|
||||
font-size: 13px;
|
||||
padding: 2px 4px 8px;
|
||||
color: #4c4c4c;
|
||||
}
|
||||
|
||||
.module-desc h4 {
|
||||
margin: 3px 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.module-desc p {
|
||||
margin: 3px 0 5px;
|
||||
}
|
||||
|
||||
.oe_kanban_record {
|
||||
margin: 5px 0;
|
||||
min-height: 80px;
|
||||
}
|
||||
Reference in New Issue
Block a user