Raphael Collet (OpenERP) has proposed merging
lp:~openerp-dev/openobject-server/trunk-module-summary into
lp:openobject-server.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-module-summary/+merge/115911
Add a field "summary" on modules, and display that field in the kanban view.
Restrict the field "technical name" in the kanban view to the group "technical
features".
--
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-module-summary/+merge/115911
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-server/trunk-module-summary.
=== modified file 'openerp/addons/base/base.sql'
--- openerp/addons/base/base.sql 2012-06-20 10:07:05 +0000
+++ openerp/addons/base/base.sql 2012-07-20 09:01:19 +0000
@@ -286,6 +286,7 @@
write_date timestamp without time zone,
write_uid integer references res_users on delete set null,
website character varying(256),
+ summary character varying(256),
name character varying(128) NOT NULL,
author character varying(128),
url character varying(128),
=== modified file 'openerp/addons/base/module/module.py'
--- openerp/addons/base/module/module.py 2012-07-18 13:50:10 +0000
+++ openerp/addons/base/module/module.py 2012-07-20 09:01:19 +0000
@@ -482,6 +482,7 @@
'application': terp.get('application', False),
'auto_install': terp.get('auto_install', False),
'icon': terp.get('icon', False),
+ 'summary': terp.get('summary', ''),
}
# update the list of available packages
=== modified file 'openerp/addons/base/module/module_view.xml'
--- openerp/addons/base/module/module_view.xml 2012-07-16 20:35:12 +0000
+++ openerp/addons/base/module/module_view.xml 2012-07-20 09:01:19 +0000
@@ -43,7 +43,7 @@
<search string="Search modules">
<group col='10' colspan='4'>
<field name="name" filter_domain="['|', ('name','ilike',self), ('shortdesc','ilike',self)]" string="Module"/>
- <field name="description" string="Keywords"/>
+ <field name="description" string="Keywords" filter_domain="['|', ('description', 'ilike', self), ('summary', 'ilike', self)]"/>
<separator orientation="vertical"/>
<filter name="app" icon="terp-check" string="Apps" domain="[('application', '=', 1)]"/>
<filter name="extra" icon="terp-check" string="Extra" domain="[('application', '=', 0)]"/>
@@ -70,6 +70,7 @@
<field name="icon"/>
<field name="name"/>
<field name="state"/>
+ <field name="summary"/>
<templates>
<t t-name="kanban-box">
<div class="oe_module_vignette oe_kanban_auto_height">
@@ -78,7 +79,8 @@
<div class="oe_module_desc">
<h4><a type="edit"><field name="shortdesc"/></a></h4>
<p class="oe_module_name">
- <field name="name"/><br/>
+ <t t-if="record.summary.raw_value"><field name="summary"/><br/></t>
+ <i><field name="name" groups="base.group_no_one"/></i><br/>
</p>
<button type="object" name="button_immediate_install" states="uninstalled">Install</button>
<button t-if="installed" disabled="disabled">Installed</button>
=== modified file 'openerp/modules/db.py'
--- openerp/modules/db.py 2012-06-11 10:36:53 +0000
+++ openerp/modules/db.py 2012-07-20 09:01:19 +0000
@@ -77,8 +77,8 @@
cr.execute('INSERT INTO ir_module_module \
(author, website, name, shortdesc, description, \
- category_id, auto_install, state, certificate, web, license, application, icon, sequence) \
- VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING id', (
+ category_id, auto_install, state, certificate, web, license, application, icon, sequence, summary) \
+ VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING id', (
info['author'],
info['website'], i, info['name'],
info['description'], category_id,
@@ -86,7 +86,7 @@
info['web'],
info['license'],
info['application'], info['icon'],
- info['sequence']))
+ info['sequence'], info['summary']))
id = cr.fetchone()[0]
cr.execute('INSERT INTO ir_model_data \
(name,model,module, res_id, noupdate) VALUES (%s,%s,%s,%s,%s)', (
=== modified file 'openerp/modules/module.py'
--- openerp/modules/module.py 2012-06-05 09:52:10 +0000
+++ openerp/modules/module.py 2012-07-20 09:01:19 +0000
@@ -341,6 +341,7 @@
'web': False,
'website': '',
'sequence': 100,
+ 'summary': '',
}
info.update(itertools.izip(
'depends data demo test init_xml update_xml demo_xml'.split(),
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp