2021-11-10 19:13:34 +07:00
|
|
|
<odoo>
|
|
|
|
<record id="runbot_merge_form_project" model="ir.ui.view">
|
|
|
|
<field name="name">Project Form</field>
|
|
|
|
<field name="model">runbot_merge.project</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form>
|
2021-11-12 22:04:34 +07:00
|
|
|
<field name="freeze_id" invisible="1"/>
|
2021-11-10 19:13:34 +07:00
|
|
|
<header>
|
2021-11-12 22:04:34 +07:00
|
|
|
<button type="object" name="action_prepare_freeze"
|
|
|
|
string="Freeze"
|
[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
|
|
|
invisible="freeze_id"/>
|
2021-11-12 22:04:34 +07:00
|
|
|
<button type="object" name="action_prepare_freeze"
|
|
|
|
string="View Freeze" class="oe_highlight"
|
[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
|
|
|
invisible="not freeze_id"/>
|
2021-11-10 19:13:34 +07:00
|
|
|
</header>
|
|
|
|
<sheet>
|
|
|
|
<div class="oe_title">
|
|
|
|
<h1><field name="name" placeholder="Name"/></h1>
|
|
|
|
</div>
|
|
|
|
<group>
|
|
|
|
<group>
|
|
|
|
<field name="github_prefix" string="bot name"/>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<group>
|
|
|
|
<field name="github_token"/>
|
2023-08-22 13:03:26 +07:00
|
|
|
<field name="github_name" readonly="0"
|
|
|
|
help="Identity when creating new commits, defaults to github name, falls back to login."/>
|
|
|
|
<field name="github_email" readonly="0"
|
|
|
|
help="Identity when creating new commits, defaults to public email, falls back to primary email."/>
|
[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
|
|
|
<span invisible="not (staging_statuses and staging_rpc)" class="alert alert-warning" role="alert">
|
2024-06-03 17:59:24 +07:00
|
|
|
Avoid overlaps between GH and RPC as the older
|
|
|
|
GH statuses may overwrite more recent RPC statuses.
|
|
|
|
</span>
|
|
|
|
<field name="staging_statuses" string="Validate via GH statuses"/>
|
|
|
|
<field name="staging_rpc" string="Validate via direct RPC"/>
|
2021-11-10 19:13:34 +07:00
|
|
|
</group>
|
|
|
|
<group>
|
2023-11-29 19:58:40 +07:00
|
|
|
<field name="staging_enabled" widget="boolean_toggle"/>
|
2023-11-30 18:27:09 +07:00
|
|
|
<field name="staging_priority"/>
|
2023-10-06 20:19:36 +07:00
|
|
|
<field name="uniquifier"/>
|
2021-11-10 19:13:34 +07:00
|
|
|
<field name="ci_timeout"/>
|
|
|
|
<field name="batch_limit"/>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
|
2021-11-12 22:04:34 +07:00
|
|
|
<group class="oe_edit_only">
|
|
|
|
<group colspan="4">
|
|
|
|
<label for="freeze_reminder">
|
|
|
|
Reminder to show after freeze
|
|
|
|
</label>
|
|
|
|
<field colspan="4" name="freeze_reminder" nolabel="1"/>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
|
2021-11-10 19:13:34 +07:00
|
|
|
<separator string="Repositories"/>
|
|
|
|
<field name="repo_ids">
|
|
|
|
<tree>
|
|
|
|
<field name="sequence" widget="handle"/>
|
2024-08-09 15:09:20 +07:00
|
|
|
<button type="object" name="get_formview_action" icon="fa-external-link" title="open repo"/>
|
2021-11-10 19:13:34 +07:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="branch_filter"/>
|
|
|
|
<field name="status_ids" widget="many2many_tags"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
<separator string="Branches"/>
|
|
|
|
<field name="branch_ids">
|
|
|
|
<tree editable="bottom" decoration-muted="not active">
|
|
|
|
<field name="sequence" widget="handle" />
|
2024-08-09 15:09:20 +07:00
|
|
|
<button type="object" name="get_formview_action" icon="fa-external-link" title="open branch"/>
|
2021-11-10 19:13:34 +07:00
|
|
|
<field name="name"/>
|
2023-06-08 13:19:43 +07:00
|
|
|
<field name="active" widget="boolean_toggle"/>
|
|
|
|
<field name="staging_enabled" widget="boolean_toggle"/>
|
2021-11-10 19:13:34 +07:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2021-11-12 22:04:34 +07:00
|
|
|
|
|
|
|
<record id="project_freeze_reminder" model="ir.ui.view">
|
|
|
|
<field name="name">Project Form</field>
|
|
|
|
<field name="model">runbot_merge.project</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form>
|
|
|
|
<sheet>
|
|
|
|
<field name="freeze_reminder" nolabel="1" readonly="1"/>
|
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2021-11-10 19:13:34 +07:00
|
|
|
</odoo>
|