Skip to content

Commit

Permalink
[MIG] hr_employee_service: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-filament committed Dec 24, 2024
1 parent 2bf3e74 commit 7ba4282
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion hr_employee_service/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "HR Employee Service",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"category": "Human Resources",
"website": "https://github.com/OCA/hr",
"author": "CorporateHub, Odoo Community Association (OCA)",
Expand Down
4 changes: 0 additions & 4 deletions hr_employee_service/models/hr_employee.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,22 @@ class HrEmployee(models.Model):
)
service_duration = fields.Integer(
groups="hr.group_hr_user",
readonly=True,
compute="_compute_service_duration",
help="Service duration in days",
)
service_duration_years = fields.Integer(
string="Service Duration (years)",
groups="hr.group_hr_user",
readonly=True,
compute="_compute_service_duration_display",
)
service_duration_months = fields.Integer(
string="Service Duration (months)",
groups="hr.group_hr_user",
readonly=True,
compute="_compute_service_duration_display",
)
service_duration_days = fields.Integer(
string="Service Duration (days)",
groups="hr.group_hr_user",
readonly=True,
compute="_compute_service_duration_display",
)

Expand Down
5 changes: 1 addition & 4 deletions hr_employee_service/views/hr_employee.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
>
<field name="service_hire_date" />
<field name="service_start_date" />
<field
name="service_termination_date"
attrs="{'invisible': [('active', '=', True)]}"
/>
<field name="service_termination_date" invisible="active" />
<field name="service_duration" invisible="1" />
<label for="service_duration" string="Service Duration" />
<div class="o_row" name="div_service_duration">
Expand Down

0 comments on commit 7ba4282

Please sign in to comment.