Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
b43d4ed7
Commit
b43d4ed7
authored
5 years ago
by
RomainLibert
Committed by
Yannick Tivisse
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[IMP] hr_skills: Adapt module with new hr.employee.public model
parent
0fd3a640
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
addons/hr_skills/models/hr_resume.py
+7
-0
7 additions, 0 deletions
addons/hr_skills/models/hr_resume.py
addons/hr_skills/views/hr_views.xml
+41
-2
41 additions, 2 deletions
addons/hr_skills/views/hr_views.xml
with
48 additions
and
2 deletions
addons/hr_skills/models/hr_resume.py
+
7
−
0
View file @
b43d4ed7
...
...
@@ -27,6 +27,13 @@ class Employee(models.Model):
return
res
class
EmployeePublic
(
models
.
Model
):
_inherit
=
'
hr.employee.public
'
resume_line_ids
=
fields
.
One2many
(
'
hr.resume.line
'
,
'
employee_id
'
,
string
=
"
Resumé lines
"
)
employee_skill_ids
=
fields
.
One2many
(
'
hr.employee.skill
'
,
'
employee_id
'
,
string
=
"
Skills
"
)
class
ResumeLine
(
models
.
Model
):
_name
=
'
hr.resume.line
'
_description
=
"
Resumé line of an employee
"
...
...
This diff is collapsed.
Click to expand it.
addons/hr_skills/views/hr_views.xml
+
41
−
2
View file @
b43d4ed7
...
...
@@ -89,6 +89,47 @@
</field>
</record>
<record
id=
"hr_employee_public_view_form_inherit"
model=
"ir.ui.view"
>
<field
name=
"name"
>
hr.employee.public.view.form.inherit.resume
</field>
<field
name=
"model"
>
hr.employee.public
</field>
<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=
"Resumé"
>
<div
class=
"row"
>
<div
class=
"col-lg-8 o_group_resume"
>
<!-- This field uses a custom tree view rendered by the 'hr_resume' widget.
Adding fields in the tree arch below makes them accessible to the widget
-->
<field
mode=
"tree"
nolabel=
"1"
name=
"resume_line_ids"
widget=
"hr_resume"
>
<tree>
<field
name=
"line_type_id"
/>
<field
name=
"name"
/>
<field
name=
"description"
/>
<field
name=
"date_start"
/>
<field
name=
"date_end"
/>
<field
name=
"display_type"
invisible=
"1"
/>
</tree>
</field>
</div>
<div
class=
"col-lg-4 o_group_skills"
>
<separator
string=
"Skills"
/>
<field
mode=
"tree"
nolabel=
"1"
name=
"employee_skill_ids"
widget=
"hr_skills"
>
<tree>
<field
name=
"skill_type_id"
invisible=
"1"
/>
<field
name=
"skill_id"
/>
<field
name=
"skill_level_id"
/>
<field
name=
"level_progress"
widget=
"progressbar"
/>
</tree>
</field>
</div>
</div>
</page>
</xpath>
</field>
</record>
<record
id=
"res_users_view_form"
model=
"ir.ui.view"
>
<field
name=
"name"
>
hr.user.preferences.form.inherit.hr.skills
</field>
<field
name=
"model"
>
res.users
</field>
...
...
@@ -272,5 +313,3 @@
sequence=
"3"
groups=
"base.group_no_one"
/>
</odoo>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment