mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP] runbot: allow to hide project
This commit is contained in:
parent
c18bbecf37
commit
d661fd9fb4
@ -24,7 +24,7 @@ def route(routes, **kw):
|
||||
@o_route(routes, **kw)
|
||||
@functools.wraps(f)
|
||||
def response_wrap(*args, **kwargs):
|
||||
projects = request.env['runbot.project'].search([])
|
||||
projects = request.env['runbot.project'].search([('hidden', '=', False)])
|
||||
more = request.httprequest.cookies.get('more', False) == '1'
|
||||
filter_mode = request.httprequest.cookies.get('filter_mode', 'all')
|
||||
keep_search = request.httprequest.cookies.get('keep_search', False) == '1'
|
||||
|
@ -20,6 +20,8 @@ class Project(models.Model):
|
||||
always_use_foreign = fields.Boolean('Use foreign bundle', help='By default, check for the same bundle name in another project to fill missing commits.', default=False)
|
||||
tmp_prefix = fields.Char('tmp branches prefix', default="tmp.")
|
||||
staging_prefix = fields.Char('staging branches prefix', default="staging.")
|
||||
hidden = fields.Boolean('Hidden', help='Hide this project from the main page')
|
||||
active = fields.Boolean("Active", default=True)
|
||||
|
||||
@api.model_create_multi
|
||||
def create(self, vals_list):
|
||||
|
@ -14,6 +14,8 @@
|
||||
<field name="trigger_ids"/>
|
||||
<field name="sequence"/>
|
||||
<field name="token" password="True"/>
|
||||
<field name="hidden"/>
|
||||
<field name="active"/>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
|
Loading…
Reference in New Issue
Block a user