[FIX] hr_skills: Page name already exist

Steps:
- In employee form
- Open studio
- Remove "Work Information" tab

Actual result:
- Traceback due to invalid xpath expression
- Invalid xpath due to duplicated name for a node

Expected result
- Tab is removed without traceback

opw-3754375

odoo/odoo@8e14972830

closes odoo/odoo#154891

X-original-commit: 950e9f89ed9c37097c6d929638eb339e0467851c
Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
Signed-off-by: Gaetan Vanden Bergh (gavb) <gavb@odoo.com>
This commit is contained in:
Gaetan Vanden Bergh (gavb)
2024-02-29 10:34:17 +00:00
parent cb43b72ca6
commit 61a5103eac
+3 -3
View File
@@ -63,7 +63,7 @@
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='public']" position="before">
<page name="public" string="Resume">
<page name="skills_resume" string="Resume">
<div class="row">
<div class="o_hr_skills_editable o_hr_skills_group o_group_resume col-lg-7 d-flex flex-column">
<separator string="Resume" class="mb-4"/>
@@ -105,7 +105,7 @@
<field name="inherit_id" ref="hr.hr_employee_public_view_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='public']" position="before">
<page name="public" string="Resume">
<page name="skills_resume" string="Resume">
<div class="row">
<div class="o_hr_skills_group o_group_resume col-lg-7 d-flex flex-column">
<!-- This field uses a custom tree view rendered by the 'resume_one2many' widget.
@@ -145,7 +145,7 @@
<field name="inherit_id" ref="hr.res_users_view_form_profile" />
<field name="arch" type="xml">
<xpath expr="//page[@name='public']" position="before">
<page name="public" string="Resume">
<page name="skills_resume" string="Resume">
<div class="row">
<div class="o_hr_skills_group o_group_resume col-lg-7 d-flex">
<!-- This field uses a custom tree view rendered by the 'resume_one2many' widget.