mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP] runbot: add tree hash to views
This commit is contained in:
parent
e521149d93
commit
c067384b8b
@ -25,7 +25,7 @@ class Commit(models.Model):
|
||||
)
|
||||
]
|
||||
name = fields.Char('SHA')
|
||||
tree_hash = fields.Char('Tree hash')
|
||||
tree_hash = fields.Char('Tree hash', readonly=True)
|
||||
repo_id = fields.Many2one('runbot.repo', string='Repo group')
|
||||
date = fields.Datetime('Commit date')
|
||||
author = fields.Char('Author')
|
||||
|
@ -36,6 +36,12 @@
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tree hash</td>
|
||||
<td>
|
||||
<t t-esc="commit.tree_hash"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Repo</td>
|
||||
<td t-esc="commit.repo_id.name"/>
|
||||
|
@ -8,6 +8,7 @@
|
||||
<sheet>
|
||||
<group>
|
||||
<field name="name" widget="char_frontend_url"/>
|
||||
<field name="tree_hash"/>
|
||||
<field name="dname"/>
|
||||
<field name="repo_id"/>
|
||||
<field name="date"/>
|
||||
@ -29,6 +30,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Commits">
|
||||
<field name="name" widget="char_frontend_url"/>
|
||||
<field name="tree_hash"/>
|
||||
<field name="date"/>
|
||||
<field name="repo_id"/>
|
||||
<field name="author_email"/>
|
||||
|
Loading…
Reference in New Issue
Block a user