mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP] runbot_merge: staging form
Link stagings to the staging commits instead of the commits directly in order to have the repository name and not need to try the commit on every repository. Also make the trees editable, in combination with `readonly="1"` this does not make the trees editable but does prevent clicking on a row to open a dialog with the linked objects, which is convenient if one wants to copy the commit hash.
This commit is contained in:
parent
f3dd3e6fde
commit
916f144163
@ -357,19 +357,21 @@
|
||||
</page>
|
||||
<page string="Commits">
|
||||
<group>
|
||||
<group string="Heads">
|
||||
<field name="head_ids" colspan="2" nolabel="1" readonly="1">
|
||||
<tree>
|
||||
<button type="object" name="get_formview_action" icon="fa-external-link" title="open head"/>
|
||||
<field name="sha"/>
|
||||
<group string="merged commits">
|
||||
<field name="commits" colspan="2" nolabel="1" readonly="1">
|
||||
<tree order="repository_id" editable="bottom">
|
||||
<button type="object" name="get_formview_action" icon="fa-external-link" title="open commit"/>
|
||||
<field name="repository_id"/>
|
||||
<field name="commit_id"/>
|
||||
</tree>
|
||||
</field>
|
||||
</group>
|
||||
<group string="Commits">
|
||||
<field name="commit_ids" colspan="2" nolabel="1" readonly="1">
|
||||
<tree>
|
||||
<button type="object" name="get_formview_action" icon="fa-external-link" title="open commit"/>
|
||||
<field name="sha"/>
|
||||
<group string="staged commits">
|
||||
<field name="heads" colspan="2" nolabel="1" readonly="1">
|
||||
<tree order="repository_id" editable="bottom">
|
||||
<button type="object" name="get_formview_action" icon="fa-external-link" title="open head"/>
|
||||
<field name="repository_id"/>
|
||||
<field name="commit_id"/>
|
||||
</tree>
|
||||
</field>
|
||||
</group>
|
||||
|
Loading…
Reference in New Issue
Block a user