[FIX] hr_referral: Fix referral module install

Issue:
The hr_referral application can not be installed with demo data.

Analyze:
The db is being auto locked. And transaction is not rollback due to the
xml failure.

Fix:
Add corresponding line into hr_demo.xml instead of hr_referral_demo.xml

Note:
It does not fix the root cause, but until the root cause is well defined
and fix, it is the best workaround.

Related ticket:
opw-3547638

Affected version:
16.0 and above

closes odoo/odoo#142928

X-original-commit: 436772ff0af5ae21043e4c0d60761c4f4149f7e7
Related: odoo/enterprise#51163
Signed-off-by: Benjamin Hanquin (beha) <beha@odoo.com>
Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
This commit is contained in:
Benjamin Hanquin (beha)
2023-11-22 00:46:17 +00:00
parent 0ab0ac683e
commit aa5bf860bd
+7
View File
@@ -118,6 +118,7 @@ Good language skills, other than English (Dutch and French preferred, others wel
<field name="department_id" ref="dep_ps"/>
<field name="no_of_recruitment">5</field>
<field name="contract_type_id" ref="contract_type_interim"/>
<field name="description">We are currently looking for someone like that to join our Consultant team.</field>
</record>
<record id="job_developer" model="hr.job">
@@ -125,6 +126,8 @@ Good language skills, other than English (Dutch and French preferred, others wel
<field name="department_id" ref="dep_rd"/>
<field name="no_of_recruitment">5</field>
<field name="contract_type_id" ref="contract_type_permanent"/>
<field name="description">We are currently looking for someone like that to join our Web team.
Someone who can snap out of coding and perform analysis or meet clients to explain the technical possibilities that can meet their needs.</field>
</record>
<record id="job_hrm" model="hr.job">
@@ -138,6 +141,10 @@ Good language skills, other than English (Dutch and French preferred, others wel
<record id="job_marketing" model="hr.job">
<field name="name">Marketing and Community Manager</field>
<field name="department_id" ref="dep_sales"/>
<field name="description">The Marketing Manager defines the mid- to long-term marketing strategy for his covered market segments in the World.
He develops and monitors the annual budget in collaboration with Sales.
He defines the products and customers portfolio according to the marketing plan.
This mission requires strong collaboration with Technical Service and Sales.</field>
</record>
<record id="job_trainee" model="hr.job">