diff options
| author | Lucas Lefèvre <lul@odoo.com> | 2019-03-29 12:03:11 +0100 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-06-13 10:02:10 +0200 |
| commit | 22437e331a60c81a80d619c075a9d516e980c078 (patch) | |
| tree | 9178688c381961b55be5329fbc443b42fb3a0c13 /addons/hr_contract/static | |
| parent | 55e7b702bb7f01c5f3bd3efbccf82c2d2c661f49 (diff) | |
[IMP] hr_contract: Sync employee and contract calendars mismatch
Purpose
=======
An employee and its current contract should have the same
calendar. Currently, if the contract's calendar is changed,
the employee's calendar is not changed.
In the same way, if a contract is created directly in `open`
state, the employee's calendar is not changed.
Finally, the calendar synchronization when the employee
contract is changed is only done in payroll, for no reason.
Specification
=============
Fix the three issues described above.
If the employee's calendar is nonetheless manually changed, a warning
should be displayed if there is a mismatch between both calendars.
Diffstat (limited to 'addons/hr_contract/static')
| -rw-r--r-- | addons/hr_contract/static/src/css/calendar_mismatch.scss | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/addons/hr_contract/static/src/css/calendar_mismatch.scss b/addons/hr_contract/static/src/css/calendar_mismatch.scss new file mode 100644 index 00000000000..f2570454198 --- /dev/null +++ b/addons/hr_contract/static/src/css/calendar_mismatch.scss @@ -0,0 +1,18 @@ +.o_form_view { + .o_calendar_warning { + cursor: help; + } + + .o_calendar_warning_tooltip { + position: absolute; + opacity: 0; + visibility: hidden; + } + + .o_calendar_warning:hover + .o_calendar_warning_tooltip { + position: relative; + visibility: visible; + opacity: 1; + transition: visibility 0s, opacity 0.5s linear; + } +} |
