diff options
| author | jbm-odoo <jbm@odoo.com> | 2018-12-13 11:10:15 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-01-21 11:29:30 +0000 |
| commit | a3daff6bc121a42bf293ca91b8f522c26bac7c8a (patch) | |
| tree | 7cdc12fc34bf66068e51970bb60f946c06c30a7e /addons/hr_holidays/wizard | |
| parent | 344877a0813a915344a230f1aaf1f932f2f9d5cb (diff) | |
[IMP] hr_holidays: Rename 'leave' into 'time off' + add dashboard
Purpose
=======
We need to use an international word to define holidays and leaves, rename everything into Time Off.
Employees needs a good dashboard and leaves summary
Specification
=============
1/ Add a new dashboard: https://balsamiq.cloud/sm5j0d/pg5w04r
Create a new dashboard with a calendar and a summary of all time off and time off request
2/ Rename leaves into Time Off everywhere
3/ Improve general usability
TaskID: 1916871
closes odoo/odoo#29634
Diffstat (limited to 'addons/hr_holidays/wizard')
4 files changed, 8 insertions, 8 deletions
diff --git a/addons/hr_holidays/wizard/hr_holidays_summary_department.py b/addons/hr_holidays/wizard/hr_holidays_summary_department.py index d0e93e3c16c..3a6777cbfe1 100644 --- a/addons/hr_holidays/wizard/hr_holidays_summary_department.py +++ b/addons/hr_holidays/wizard/hr_holidays_summary_department.py @@ -9,7 +9,7 @@ from odoo.exceptions import UserError class HolidaysSummaryDept(models.TransientModel): _name = 'hr.holidays.summary.dept' - _description = 'HR Leaves Summary Report By Department' + _description = 'HR Time Off Summary Report By Department' date_from = fields.Date(string='From', required=True, default=lambda *a: time.strftime('%Y-%m-01')) depts = fields.Many2many('hr.department', 'summary_dept_rel', 'sum_id', 'dept_id', string='Department(s)') @@ -17,7 +17,7 @@ class HolidaysSummaryDept(models.TransientModel): ('Approved', 'Approved'), ('Confirmed', 'Confirmed'), ('both', 'Both Approved and Confirmed') - ], string='Leave Type', required=True, default='Approved') + ], string='Time Off Type', required=True, default='Approved') @api.multi def print_report(self): diff --git a/addons/hr_holidays/wizard/hr_holidays_summary_department_views.xml b/addons/hr_holidays/wizard/hr_holidays_summary_department_views.xml index 2d6aada20d5..40a3288f914 100644 --- a/addons/hr_holidays/wizard/hr_holidays_summary_department_views.xml +++ b/addons/hr_holidays/wizard/hr_holidays_summary_department_views.xml @@ -5,7 +5,7 @@ <field name="name">hr.holidays.summary.dept.form</field> <field name="model">hr.holidays.summary.dept</field> <field name="arch" type="xml"> - <form string="Leaves by Department"> + <form string="Time Off by Department"> <group> <field name="date_from" /> <field name="holiday_type"/> @@ -20,7 +20,7 @@ </record> <record id="action_hr_holidays_summary_dept" model="ir.actions.act_window"> - <field name="name">Leaves by Department</field> + <field name="name">Time Off by Department</field> <field name="type">ir.actions.act_window</field> <field name="res_model">hr.holidays.summary.dept</field> <field name="view_type">form</field> diff --git a/addons/hr_holidays/wizard/hr_holidays_summary_employees.py b/addons/hr_holidays/wizard/hr_holidays_summary_employees.py index ea8b1c79d3e..b0ec45a585e 100644 --- a/addons/hr_holidays/wizard/hr_holidays_summary_employees.py +++ b/addons/hr_holidays/wizard/hr_holidays_summary_employees.py @@ -8,7 +8,7 @@ from odoo import api, fields, models class HolidaysSummaryEmployee(models.TransientModel): _name = 'hr.holidays.summary.employee' - _description = 'HR Leaves Summary Report By Employee' + _description = 'HR Time Off Summary Report By Employee' date_from = fields.Date(string='From', required=True, default=lambda *a: time.strftime('%Y-%m-01')) emp = fields.Many2many('hr.employee', 'summary_emp_rel', 'sum_id', 'emp_id', string='Employee(s)') @@ -16,7 +16,7 @@ class HolidaysSummaryEmployee(models.TransientModel): ('Approved', 'Approved'), ('Confirmed', 'Confirmed'), ('both', 'Both Approved and Confirmed') - ], string='Select Leave Type', required=True, default='Approved') + ], string='Select Time Off Type', required=True, default='Approved') @api.multi def print_report(self): diff --git a/addons/hr_holidays/wizard/hr_holidays_summary_employees_views.xml b/addons/hr_holidays/wizard/hr_holidays_summary_employees_views.xml index c1e9b32a0d4..7553d67e702 100644 --- a/addons/hr_holidays/wizard/hr_holidays_summary_employees_views.xml +++ b/addons/hr_holidays/wizard/hr_holidays_summary_employees_views.xml @@ -5,7 +5,7 @@ <field name="name">hr.holidays.summary.employee.form</field> <field name="model">hr.holidays.summary.employee</field> <field name="arch" type="xml"> - <form string="Leaves Summary"> + <form string="Time Off Summary"> <group col="4" colspan="6"> <field name="date_from"/> <newline/> @@ -22,7 +22,7 @@ </record> <record id="action_hr_holidays_summary_employee" model="ir.actions.act_window"> - <field name="name">Leaves Summary</field> + <field name="name">Time Off Summary</field> <field name="type">ir.actions.act_window</field> <field name="res_model">hr.holidays.summary.employee</field> <field name="view_type">form</field> |
