base: add active field to repository

bzr revid: ced-84d00cb29b8e856d8ebcfbdbd7b289f9534fa614
This commit is contained in:
ced
2007-08-03 14:02:55 +00:00
parent e2c24bbb5c
commit f4b96696d9
2 changed files with 6 additions and 1 deletions
+2
View File
@@ -153,10 +153,12 @@ class module_repository(osv.osv):
'- The first parenthesis must match the name of the module.\n'
'- The second parenthesis must match all the version number.\n'
'- The last parenthesis must match the extension of the module.'),
'active': fields.boolean('Active'),
}
_defaults = {
'sequence': lambda *a: 5,
'filter': lambda *a: 'href="([a-zA-Z0-9_]+)-('+release.version.rsplit('.', 1)[0]+'.(\\d+)((\\.\\d+)*)([a-z]?)((_(pre|p|beta|alpha|rc)\\d*)*)(-r(\\d+))?)(\.zip)"',
'active': lambda *a: 1,
}
_order = "sequence"
module_repository()
+4 -1
View File
@@ -167,7 +167,8 @@
<form string="Repository">
<field name="name" select="1"/>
<field name="sequence"/>
<field name="url" colspan="4" select="1" widget="url"/>
<field name="url" select="1" widget="url"/>
<field name="active" select="1"/>
<field name="filter" colspan="4"/>
</form>
</field>
@@ -179,6 +180,7 @@
<field name="arch" type="xml">
<tree string="Repository list">
<field name="sequence"/>
<field name="active"/>
<field name="name"/>
<field name="url"/>
</tree>
@@ -188,6 +190,7 @@
<field name="res_model">ir.module.repository</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="context">{'active_test': False}</field>
</record>
<menuitem
name="Administration/Modules management/Repositories"