Skip to content

Commit

Permalink
[FIX] hr_skills: Page name already exist
Browse files Browse the repository at this point in the history
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@8e14972

closes odoo#154891

X-original-commit: 950e9f8
Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
Signed-off-by: Gaetan Vanden Bergh (gavb) <gavb@odoo.com>
  • Loading branch information
GaetanVandenBergh committed Feb 29, 2024
1 parent cb43b72 commit 61a5103
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/hr_skills/views/hr_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 61a5103

Please sign in to comment.