mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[IMP] runbot: allow to hide project
This commit is contained in:
parent
81e46ecfbd
commit
a602f69675
@ -24,7 +24,7 @@ def route(routes, **kw):
|
|||||||
@o_route(routes, **kw)
|
@o_route(routes, **kw)
|
||||||
@functools.wraps(f)
|
@functools.wraps(f)
|
||||||
def response_wrap(*args, **kwargs):
|
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'
|
more = request.httprequest.cookies.get('more', False) == '1'
|
||||||
filter_mode = request.httprequest.cookies.get('filter_mode', 'all')
|
filter_mode = request.httprequest.cookies.get('filter_mode', 'all')
|
||||||
keep_search = request.httprequest.cookies.get('keep_search', False) == '1'
|
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)
|
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.")
|
tmp_prefix = fields.Char('tmp branches prefix', default="tmp.")
|
||||||
staging_prefix = fields.Char('staging branches prefix', default="staging.")
|
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
|
@api.model_create_multi
|
||||||
def create(self, vals_list):
|
def create(self, vals_list):
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
<field name="trigger_ids"/>
|
<field name="trigger_ids"/>
|
||||||
<field name="sequence"/>
|
<field name="sequence"/>
|
||||||
<field name="token" password="True"/>
|
<field name="token" password="True"/>
|
||||||
|
<field name="hidden"/>
|
||||||
|
<field name="active"/>
|
||||||
</group>
|
</group>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
|
Loading…
Reference in New Issue
Block a user