A considerable number of upgrade requests fail on different python constraints, because the DBs in question are missing the `crm_team_member_admin_sales` xmlid, while the data is in conflict with the attempt to restore the default data (e.g. `base.user_admin` and `team_sales_department` have been assigned to different companies or simply the data still exists and is still marked as active). The removal of the xmlid can only be done by an admin in developer mode and it is safe to assume that the intent was to no longer have the default data and that it is of no use to recreate it. To support this intention and to make these upgrades succeed, set `forcecreate="0"` on the XML record `crm_team_member_admin_sales`. opw-3414340 closes odoo/odoo#128020 X-original-commit: 73fa2c03928afb8a3bdc3533d3af0874505ff6b8 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Signed-off-by: Carsten Wolff (cawo) <cawo@odoo.com>
40 lines
1.5 KiB
XML
40 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
<record id="team_sales_department" model="crm.team">
|
|
<field name="name">Sales</field>
|
|
<field name="sequence">0</field>
|
|
<field name="company_id" eval="False"/>
|
|
</record>
|
|
<record id="crm_team_member_admin_sales" model="crm.team.member" forcecreate="0">
|
|
<field name="crm_team_id" ref="team_sales_department"/>
|
|
<field name="user_id" ref="base.user_admin"/>
|
|
</record>
|
|
|
|
<record id="salesteam_website_sales" model="crm.team">
|
|
<field name="name">Website</field>
|
|
<field name="company_id" eval="False"/>
|
|
<field name="active" eval="False"/>
|
|
</record>
|
|
|
|
<record id="pos_sales_team" model="crm.team">
|
|
<field name="name">Point of Sale</field>
|
|
<field name="company_id" eval="False"/>
|
|
<field name="active" eval="False"/>
|
|
</record>
|
|
|
|
<record id="ebay_sales_team" model="crm.team">
|
|
<field name="name">eBay</field>
|
|
<field name="active" eval="False"/>
|
|
</record>
|
|
|
|
<function model="crm.team" name="message_unsubscribe"
|
|
eval="[
|
|
ref('sales_team.team_sales_department'),
|
|
ref('sales_team.salesteam_website_sales'),
|
|
ref('sales_team.ebay_sales_team'),
|
|
ref('sales_team.pos_sales_team')],
|
|
[ref('base.partner_root')]"/>
|
|
</data>
|
|
</odoo>
|