The user can delete teams created during the installation of the Sale
Team module, both CRM and Sale modify those teams but the way they
modify the teams doesn't take their deletion into account.
This reverts commit 30a848bffb to replace
post_init_hooks by `forcecreate=False` in the datas.
closes odoo/odoo#32742
Signed-off-by: Christophe Simonis <chs@odoo.com>
20 lines
764 B
XML
20 lines
764 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
<record id="base.user_demo" model="res.users">
|
|
<field name="groups_id" eval="[(4,ref('sales_team.group_sale_salesman'))]"/>
|
|
</record>
|
|
|
|
<record id="sales_team.team_sales_department" model="crm.team" forcecreate="False">
|
|
<field name="member_ids" eval="[(4, ref('base.user_demo'))]"/>
|
|
</record>
|
|
|
|
<record id="sales_team.crm_team_1" model="crm.team">
|
|
<field name="use_opportunities">True</field>
|
|
<field name="use_leads">True</field>
|
|
<field name="dashboard_graph_model">crm.lead</field>
|
|
<field name="member_ids" eval="[(4, ref('base.user_demo'))]"/>
|
|
</record>
|
|
</data>
|
|
</odoo>
|