summaryrefslogtreecommitdiff
path: root/addons/hr_contract/static/src
AgeCommit message (Collapse)Author
2021-02-26[FIX] hr_contract: Avoid horizontal scroll in contract form on mobileAdrien Dieudonne
The following warning is very long in absolute position. The following text: "Calendar Mismatch : The employee's calendar does not match its current contract calendar. This could lead to unexpected behaviors." is invisible but takes a lot of width on the same line. Now, the item is a block of 0px height and doesn't take space. This avoids the horizontal scroll on mobile. Note that the item is displayed at the wrong place anyway. This will be fixed in master. Steps to reproduce: - Payroll / Employees / All contracts - Change "Working Schedule" field closes odoo/odoo#66944 Task-id: 1929043 X-original-commit: af81ac1a03c2b475403f1518dcee58193359cdef Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2019-07-01[FIX] hr_contract: Move scss in correct folderLucas Lefèvre
File `calendar_mismatch.scss` was wrongly in a `css` folder while it should be in a `scss` folder according to the guidelines. And set the correct `type="text/scss"` instead of `type="text/css"` for a .scss file. closes odoo/odoo#34478 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-06-28[IMP] hr_contract: Replace some contract states by kanban statusKevin Baptiste
Purpose ======= Having some usability check to be sure to make the pay for everyone, and don't loose contracts. We would like to remove incoming and to renew columns in hr.contract and replace them by a kanban state. In employee, we would like to add warning on the kanban to warn the hr responsible there is no contract or a contract is about to expire Specification ============= hr.contract kanban: - add a kanabn state - it becomes red automatically when the contract is in running and expire in 7 days - add aquick search in filter to filter on expered soon - the kanban state can be changed manaually (in case of there is several rh) - sort by contract end date set first (more close of today first) Employee kanban - add an red icon if there is no contract in Runnig status OR there is a kanban state red in their contract (whatever the status). - add a quick seaach on employee with warning - State pending + green = incoming - State confirmed + red = about to expire / to renew closes odoo/odoo#33489 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-06-13[IMP] hr_contract: Sync employee and contract calendars mismatchLucas Lefèvre
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.