Remove license on ir.module

This commit is contained in:
Cédric Krier
2008-09-24 15:43:34 +02:00
parent 6a78d17a87
commit 33d3af2f6f
2 changed files with 3 additions and 11 deletions
+1 -6
View File
@@ -146,9 +146,6 @@ class Module(OSV):
('to remove', 'To be removed'),
('to install', 'To be installed'),
], string='State', readonly=True)
license = fields.Selection([('GPL-2', 'GPL-2'),
('Other proprietary', 'Other proprietary')], string='License',
readonly=True)
def __init__(self):
super(Module, self).__init__()
@@ -178,7 +175,7 @@ class Module(OSV):
return 'uninstalled'
def default_license(self, cursor, user, context=None):
return 'GPL-2'
return 'GPL-3'
@staticmethod
def get_module_info(name):
@@ -355,7 +352,6 @@ class Module(OSV):
'shortdesc': tryton.get('name', ''),
'author': tryton.get('author', ''),
'website': tryton.get('website', ''),
'license': tryton.get('license', 'GPL-2'),
})
self._update_dependencies(cursor, user, module_id,
tryton.get('depends', []))
@@ -380,7 +376,6 @@ class Module(OSV):
'shortdesc': tryton.get('name', ''),
'author': tryton.get('author', 'Unknown'),
'website': tryton.get('website', ''),
'license': tryton.get('license', 'GPL-2'),
})
res += 1
self._update_dependencies(cursor, user, new_id,
+2 -5
View File
@@ -19,15 +19,12 @@
<field name="description" colspan="4"/>
<label name="version"/>
<field name="version"/>
<label name="license"/>
<field name="license"/>
<label name="author"/>
<field name="author"/>
<label name="website"/>
<field name="website" widget="url"/>
<label name="url"/>
<field name="url" widget="url"/>
<newline/>
<label name="website"/>
<field name="website" widget="url"/>
<label name="state"/>
<field name="state" readonly="1"/>
<group col="1" colspan="2">