2024-03-05 18:59:58 +07:00
|
|
|
<odoo>
|
2024-07-15 20:52:08 +07:00
|
|
|
<record id="runbot_merge_action_batches" model="ir.actions.act_window">
|
|
|
|
<field name="name">Batches</field>
|
|
|
|
<field name="res_model">runbot_merge.batch</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="runbot_merge_batch_search" model="ir.ui.view">
|
|
|
|
<field name="name">batches search</field>
|
|
|
|
<field name="model">runbot_merge.batch</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search>
|
|
|
|
<filter name="all" domain="['|', ('active', '=', True), ('active', '=', False)]"/>
|
|
|
|
<filter name="inactive" domain="[('active', '=', False)]"/>
|
|
|
|
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="target"/>
|
|
|
|
<field name="id"/>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="runbot_merge_batch_tree" model="ir.ui.view">
|
|
|
|
<field name="name">batches list</field>
|
|
|
|
<field name="model">runbot_merge.batch</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree decoration-muted="not active">
|
|
|
|
<field name="id"/>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="target"/>
|
|
|
|
<field name="prs" widget="many2many_tags"/>
|
|
|
|
<field name="blocked"/>
|
|
|
|
<field name="active" invisible="1"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2024-03-05 18:59:58 +07:00
|
|
|
<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"/>
|
[MERGE] bot from 16.0 to 17.0
Broken (can't run odoo at all):
- In Odoo 17.0, the `pre_init_hook` takes an env, not a cursor, update
`_check_citext`.
- Odoo 17.0 rejects `@attrs` and doesn't say where they are or how to
update them, fun, hunt down `attrs={'invisible': ...` and try to fix
them.
- Odoo 17.0 warns on non-multi creates, update them, most were very
reasonable, one very wasn't.
Test failures:
- Odoo 17.0 deprecates `name_get` and doesn't use it as a *source*
anymore, replace overrides by overrides to `_compute_display_name`.
- Multiple tracking changes:
- `_track_set_author` takes a `Partner` not an id.
- `_message_compute_author` still requires overriding in order to
handle record creation, which in standard doesn't support author
overriding.
- `mail.tracking.value.field_type` has been removed, the field type
now needs to be retrieved from the `field_id`.
- Some tracking ordering have changed and require adjusting a few
tests.
Also added a few flushes before SQL queries which are not (obviously
at least) at the start of a cron or controller, no test failure
observed but better safe than sorry (probably).
2024-08-12 18:13:03 +07:00
|
|
|
<field name="priority" invisible="merge_date"/>
|
|
|
|
<field name="skipchecks" invisible="merge_date"/>
|
|
|
|
<field name="cancel_staging" invisible="merge_date"/>
|
2024-03-05 18:59:58 +07:00
|
|
|
<field name="fw_policy"/>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<field name="blocked"/>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
<group string="Pull Requests">
|
|
|
|
<group colspan="4">
|
2024-08-16 19:24:06 +07:00
|
|
|
<field colspan="2" name="all_prs" nolabel="1" readonly="1">
|
2024-03-05 18:59:58 +07:00
|
|
|
<tree>
|
2024-08-09 15:09:20 +07:00
|
|
|
<button type="object" name="get_formview_action" icon="fa-external-link" title="open PR"/>
|
2024-03-05 18:59:58 +07:00
|
|
|
<field name="display_name"/>
|
|
|
|
<field name="repository"/>
|
|
|
|
<field name="state"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
<group string="Genealogy">
|
|
|
|
<group colspan="4">
|
2024-08-16 19:24:06 +07:00
|
|
|
<field colspan="2" name="genealogy_ids" nolabel="1" readonly="1">
|
2024-03-05 18:59:58 +07:00
|
|
|
<tree decoration-muted="id == parent.id">
|
2024-08-09 15:09:20 +07:00
|
|
|
<button type="object" name="get_formview_action" icon="fa-external-link" title="open batch"/>
|
2024-03-05 18:59:58 +07:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="target"/>
|
|
|
|
<field name="all_prs" widget="many2many_tags"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
<group string="Stagings">
|
|
|
|
<group colspan="4">
|
2024-08-16 19:24:06 +07:00
|
|
|
<field colspan="2" name="staging_ids" nolabel="1" readonly="1">
|
2024-03-05 18:59:58 +07:00
|
|
|
<tree>
|
2024-08-09 15:09:20 +07:00
|
|
|
<button type="object" name="get_formview_action" icon="fa-external-link" title="open staging"/>
|
2024-03-05 18:59:58 +07:00
|
|
|
<field name="staged_at"/>
|
|
|
|
<field name="state"/>
|
|
|
|
<field name="reason"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
</odoo>
|