mirror of
https://github.com/odoo/runbot.git
synced 2025-04-14 14:20:57 +07:00

Displays the entire batch set as a table, along both repository (linked PRs) and branch (forward ports). Should provide a much more complete overview. Adds a copy of the dashboard as a raster render, to link from the PR: as usual SVG is shit, content-based viewboxes are hell and having to duplicate the entire CSS because `<img/>`-linked CSS can't run is gross. And there's no payoff since the image is not interactible anyway. Performing manual ad-hoc table rendering via pillow is not significantly worse, it works fine and it's possible to do *really* good conditional request handling (hopefully) because I've basically got all the information I need right here. In fact it might make sense to upgrade the regular HTML page with similar conditional request handling, at least for the last-update bit if not the etag. Fixes #771,fixes #770
60 lines
2.8 KiB
XML
60 lines
2.8 KiB
XML
<odoo>
|
|
<record id="runbot_merge_batch_form" model="ir.ui.view">
|
|
<field name="name">Batch form</field>
|
|
<field name="model">runbot_merge.batch</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<sheet>
|
|
<div class="oe_title"><h1><field name="name"/></h1></div>
|
|
<group>
|
|
<group>
|
|
<field name="target"/>
|
|
<field name="merge_date"/>
|
|
<field name="priority" attrs="{'invisible': [('merge_date', '!=', False)]}"/>
|
|
<field name="skipchecks" widget="boolean_toggle" attrs="{'invisible': [('merge_date', '!=', False)]}"/>
|
|
<field name="cancel_staging" widget="boolean_toggle" attrs="{'invisible': [('merge_date', '!=', False)]}"/>
|
|
<field name="fw_policy"/>
|
|
</group>
|
|
<group>
|
|
<field name="blocked"/>
|
|
</group>
|
|
</group>
|
|
<group string="Pull Requests">
|
|
<group colspan="4">
|
|
<field name="all_prs" nolabel="1" readonly="1">
|
|
<tree>
|
|
<field name="display_name"/>
|
|
<field name="repository"/>
|
|
<field name="state"/>
|
|
</tree>
|
|
</field>
|
|
</group>
|
|
</group>
|
|
<group string="Genealogy">
|
|
<group colspan="4">
|
|
<field name="genealogy_ids" nolabel="1" readonly="1">
|
|
<tree decoration-muted="id == parent.id">
|
|
<field name="name"/>
|
|
<field name="target"/>
|
|
<field name="all_prs" widget="many2many_tags"/>
|
|
</tree>
|
|
</field>
|
|
</group>
|
|
</group>
|
|
<group string="Stagings">
|
|
<group colspan="4">
|
|
<field name="staging_ids" nolabel="1" readonly="1">
|
|
<tree>
|
|
<field name="staged_at"/>
|
|
<field name="state"/>
|
|
<field name="reason"/>
|
|
</tree>
|
|
</field>
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
</odoo>
|