diff options
| author | Robot Odoo <xmo+roboto@odoo.com> | 2019-05-17 13:17:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-17 13:17:15 +0200 |
| commit | 33b2ac000098811208a1c8b075a554cb1f65cca1 (patch) | |
| tree | a929d551bfbec38ba602b61136e07e6a3f358bdc /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 60a609fa8d9f3ea7b9de16854c02916af0a3bf04 (diff) | |
| parent | fac0df86cb9783a77a21bbdbec42e2d786de454a (diff) | |
[IMP] hr_holidays: Improve usability
This commit improves screens usability in the Time Off app.
The following points have been changed:
1. For leaves and allocations, add buttons on the kanban
card to directly approve or refuse if it's not already
validated.
2. On the leave kanban card, only display the dates,
not the full datetime.
3. Add a description to the activity created when a
leave/allocation needs to be approved by someone.
4. Allocation are now sorted in the list view by date_from,
more recent firsts.
5. In the allocation form view, add a stat button to know
how many leaves has been allocated and how many has been taken
for the leave type.
6. In the leave form view, in , there are currently two duration
for managers. The readonly duration is an informative field for regular
employees and the editable duration is meant for managers, it the
number of days needs to be manually set for some reason.
Make sure, the manager only sees the editable duration fields.
7. From "My Dashboard", the creation form view should not be the
manager form view (default view) which has additional unecessary fields
when requesting a leave for yourself (`employee_id`, `holiday_type`, ect).
It's now showing the form view for regular employees.
8. When approving a leave, to make an informed decision, it might
be needed to check leaves already taken by the employee or leaves
of its collaborators. This commit adds a widget displaying some stats
in a leave form view. This widget is only displayed in the context of the action leading
to leaves to approve. Stats displayed are:
- the number of days taken
by the employee this year, grouped by leave type
- Leaves taken by employees in the same department in the current month.
Task 1961713
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
closes odoo/odoo#32409
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
