[IMP] improved kanban view of modules

bzr revid: fp@openerp.com-20120519081408-vugv7qgzsqtlssj0
This commit is contained in:
Fabien Pinckaers 2012-05-19 10:14:08 +02:00
parent 4f61158038
commit 0a7c943856
4 changed files with 11 additions and 13 deletions

0
history/xml2yml.py Executable file → Normal file
View File

View File

@ -52,11 +52,7 @@
filter_domain="['|', ('name','ilike',self), ('shortdesc','ilike',self)]"
string="Name"/>
<field name="description" string="Keywords"/>
<field name="category_id">
<filter name="no_hidden" help="Hide technical modules"
icon="STOCK_REMOVE" groups="base.group_no_one"
domain="['!', ('category_id.parent_id','child_of','Hidden')]"/>
</field>
<field name="category_id"/>
<newline/>
<group expand="0" string="Group By...">
<filter string="Author" icon="terp-personal" domain="[]" context="{'group_by':'author'}"/>
@ -87,8 +83,7 @@
</a>
<div class="oe_module_desc">
<h4><a type="edit"><field name="shortdesc"/></a></h4>
<p>
<field name="category_id"/><br/>
<p class="oe_module_name">
<field name="name"/><br/>
<span t-if="record.complexity.raw_value == 'Expert'" class="oe_label oe_warning">Complex</span>
</p>
@ -209,7 +204,7 @@
<field name="res_model">ir.module.module</field>
<field name="view_type">form</field>
<field name="view_mode">kanban,tree,form</field>
<field name="context">{'search_default_app':1, 'search_default_no_hidden': 1}</field>
<field name="context">{'search_default_app':1}</field>
<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>
</record>

View File

@ -1,6 +1,5 @@
.oe_module_vignette {
padding: 6px;
min-height: 100px;
padding: 12px 6px 6px 0px;
}
.oe_module_icon, .oe_module_desc {
@ -15,10 +14,9 @@
}
.oe_module_desc {
width: 220px;
width: 210px;
font-size: 13px;
padding: 2px 5px;
color: #4c4c4c;
padding: 0px 5px;
}
.oe_module_desc h4 {
@ -34,6 +32,10 @@
text-decoration: underline;
}
.oe_module_name {
color: #999999;
}
.oe_module_desc p {
margin: 3px 0 5px;
}

View File

@ -1176,6 +1176,7 @@ class related(function):
# name_get as root, as seeing the name of a related
# object depends on access right of source document,
# not target, so user may not have access.
print self._obj, self.string
ng = dict(obj.pool.get(self._obj).name_get(cr, 1, ids, context=context))
for r in res:
if res[r]: