summaryrefslogtreecommitdiff
path: root/bin/addons/base/module
diff options
context:
space:
mode:
authorChristophe Simonis <chs@openerp.com>2010-05-31 14:19:18 +0200
committerChristophe Simonis <chs@openerp.com>2010-05-31 14:19:18 +0200
commit758d2f103f9c6c7cc9ce4b476b8b8e76fca62a1e (patch)
treed1b49185e50201d3430e196be80c78f4fb04b9ac /bin/addons/base/module
parent2f3c27b63171cfad9c74459602df3e5805baa6ed (diff)
[IMP] base: correct module view
bzr revid: chs@openerp.com-20100531121918-i1eet6uw5w7xut5a
Diffstat (limited to 'bin/addons/base/module')
-rw-r--r--bin/addons/base/module/module.py2
-rw-r--r--bin/addons/base/module/module_view.xml16
2 files changed, 7 insertions, 11 deletions
diff --git a/bin/addons/base/module/module.py b/bin/addons/base/module/module.py
index 5bc12432d4e..e29e95bf68f 100644
--- a/bin/addons/base/module/module.py
+++ b/bin/addons/base/module/module.py
@@ -316,7 +316,7 @@ class module(osv.osv):
'shortdesc': terp.get('name', ''),
'author': terp.get('author', 'Unknown'),
'maintainer': terp.get('maintainer', False),
- 'contributors': ', '.join(terp.get('contributors', [])),
+ 'contributors': ', '.join(terp.get('contributors', [])) or False,
'website': terp.get('website', ''),
'license': terp.get('license', 'GPL-2'),
'certificate': terp.get('certificate') or None,
diff --git a/bin/addons/base/module/module_view.xml b/bin/addons/base/module/module_view.xml
index 5a64360b01d..63484b97d43 100644
--- a/bin/addons/base/module/module_view.xml
+++ b/bin/addons/base/module/module_view.xml
@@ -95,16 +95,12 @@
<field colspan="4" name="description" select="2"/>
<field name="installed_version"/>
<field name="latest_version"/>
- <group colspan='2' col='2'>
- <field name="author" select="2"/>
- <field name='maintainer'/>
- <field name='contributors'/>
- </group>
- <group colspan='2' col='2'>
- <field name="website" select="2" widget="url"/>
- <field name="url" widget="url"/>
- <field name="published_version"/>
- </group>
+ <field name="author" select="2"/>
+ <field name="website" select="2" widget="url"/>
+ <field name="maintainer" attrs="{'invisible': [('maintainer', '=', False)]}"/>
+ <field name="url" widget="url"/>
+ <field name="contributors" widget="char" attrs="{'invisible': [('contributors', '=', False)]}"/>
+ <field name="published_version"/>
<field name="license"/>
<field name="demo" readonly="1"/>
<newline/>