2018-03-14 16:37:46 +07:00
|
|
|
<odoo>
|
[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
|
|
|
<record id="runbot_merge_search_partner" model="ir.ui.view">
|
2021-10-25 15:14:01 +07:00
|
|
|
<field name="name">Improve search on partners</field>
|
2021-11-10 14:11:09 +07:00
|
|
|
<field name="model">res.partner</field>
|
2021-10-25 15:14:01 +07:00
|
|
|
<field name="inherit_id" ref="base.view_res_partner_filter"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="name" position="attributes">
|
|
|
|
<attribute name="filter_domain">[
|
|
|
|
'|', '|',
|
|
|
|
('name', 'ilike', self),
|
|
|
|
('github_login', 'ilike', self),
|
|
|
|
('email', 'ilike', self),
|
|
|
|
]</attribute>
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2020-02-12 21:34:26 +07:00
|
|
|
<record id="runbot_merge_tree_partner" model="ir.ui.view">
|
|
|
|
<field name="name">Configure partners list to be useful</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref="base.view_partner_tree"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="//tree" position="replace">
|
|
|
|
<tree string="Contacts">
|
|
|
|
<field name="display_name" string="Name"/>
|
|
|
|
<field name="github_login"/>
|
|
|
|
<field name="review_rights" widget="many2many_tags"/>
|
2023-06-08 13:19:43 +07:00
|
|
|
<field name="user_id" invisible="1"/>
|
2020-02-12 21:34:26 +07:00
|
|
|
</tree>
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
2018-03-14 16:37:46 +07:00
|
|
|
<record id="runbot_merge_form_partner" model="ir.ui.view">
|
|
|
|
<field name="name">Add mergebot/GH info to partners form</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
|
|
|
<field name="arch" type="xml">
|
2021-10-06 18:06:53 +07:00
|
|
|
<xpath expr="//sheet" position="before">
|
2024-08-07 19:14:27 +07:00
|
|
|
<field name="github_login" invisible="1"/>
|
|
|
|
<field name="review_rights" invisible="1"/>
|
2021-10-06 18:06:53 +07:00
|
|
|
<header>
|
|
|
|
<button type="object" name="fetch_github_email"
|
|
|
|
string="Fetch Github Email" 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="email or not github_login"
|
2021-10-06 18:06:53 +07:00
|
|
|
/>
|
|
|
|
</header>
|
2021-10-25 14:07:38 +07:00
|
|
|
<div class="alert alert-warning" role="alert"
|
[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="email or not review_rights">
|
2021-10-25 14:07:38 +07:00
|
|
|
Reviewers must have an email address set! Without an email
|
|
|
|
configured, reviews will be ignored.
|
|
|
|
</div>
|
2021-10-06 18:06:53 +07:00
|
|
|
</xpath>
|
2018-03-14 16:37:46 +07:00
|
|
|
<xpath expr="//notebook" position="inside">
|
2018-09-22 21:10:54 +07:00
|
|
|
<page string="Mergebot" groups="runbot_merge.group_admin">
|
2024-03-19 18:24:43 +07:00
|
|
|
<field name="override_sensitive" invisible="1"/>
|
2018-03-14 16:37:46 +07:00
|
|
|
<group>
|
|
|
|
<group>
|
|
|
|
<field name="github_login"/>
|
|
|
|
</group>
|
2020-02-10 21:05:08 +07:00
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<group colspan="4" string="Review Rights">
|
2024-08-16 19:24:06 +07:00
|
|
|
<div colspan="2" class="alert alert-warning" role="alert" invisible="not review_rights">
|
2024-03-19 18:24:43 +07:00
|
|
|
Review access requires successfully following
|
|
|
|
the Code Review (QDP) and Security (DLE)
|
|
|
|
trainings. Please check before giving r+ access.
|
|
|
|
</div>
|
2024-08-16 19:24:06 +07:00
|
|
|
<field colspan="2" name="review_rights" nolabel="1">
|
2020-02-10 21:05:08 +07:00
|
|
|
<tree string="Review ACLs" editable="bottom">
|
|
|
|
<field name="repository_id"/>
|
|
|
|
<field name="review"/>
|
|
|
|
<field name="self_review"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
2018-03-14 16:37:46 +07:00
|
|
|
</group>
|
2024-08-16 19:24:06 +07:00
|
|
|
<group colspan="2">
|
|
|
|
<div colspan="2" class="alert alert-danger" role="alert" invisible="not override_sensitive">
|
2024-03-19 18:24:43 +07:00
|
|
|
Security Override <b>REQUIRES</b> successfully
|
|
|
|
following the Security training. Please ask DLE
|
|
|
|
before granting access.
|
|
|
|
</div>
|
2024-08-16 19:24:06 +07:00
|
|
|
<field colspan="2" name="override_rights" widget="many2many_tags"/>
|
2020-07-14 15:06:07 +07:00
|
|
|
</group>
|
2018-03-14 16:37:46 +07:00
|
|
|
</group>
|
|
|
|
<group>
|
2024-08-16 19:24:06 +07:00
|
|
|
<group colspan="2" string="Delegate On">
|
|
|
|
<field name="delegate_reviewer" nolabel="1" colspan="2">
|
2022-07-29 18:43:40 +07:00
|
|
|
<tree>
|
|
|
|
<field name="repository"/>
|
|
|
|
<field name="number"/>
|
|
|
|
<field name="target"/>
|
|
|
|
<field name="state"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
2018-03-14 16:37:46 +07:00
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
</page>
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
</odoo>
|