summaryrefslogtreecommitdiff
path: root/addons/hr_attendance/__init__.py
AgeCommit message (Collapse)Author
2019-01-04[FIX] hr_attendance: kiosk keep aliveNicolas Martinelli
When running in kiosk mode, it is necessary to refresh the interface once a week since the session is garbage collected. The garbage collection method `session_gc` relies on the last modification time of the session file. However, the session file is only saved when the field key `should_save` of the session request is `True`. This happens when the session is `modified`, i.e. an item on the cookie is set. In practice, the session is saved at each reload of the page. Regular RPC calls, such as the one used in commit 6e1b660f9c76a41, do not trigger a modification of the session file. Therefore, we create a new route which explicitly sets the session as `modified`, which ultimately triggers a `save` in `get_response`. opw-1917254 closes odoo/odoo#29919
2017-04-28[FIX] Various P3-related import changesxmo-odoo
* LDAP import: python-ldap is not python3-compatible, pyldap is Warning: only supported from debian Stretch (current testing)? https://packages.debian.org/search?searchon=names&keywords=pyldap * implicitly relative imports * imports of moved or removed stdlib modules issue #8530
2016-07-06[IMP] hr_attendance: migration and revampDenis Vermylen (dve)
- Migration to new API - MODEL : hr.attendance now has check_in and check_out datetimes plus a computed field worked_hours, no more action (in/out) and no more reason. hr.employee has extra fields: pin and barcode and can print a badge containing that barcode. - the module contains : -> a menu "My Attendances" to check yourself in or out manually. -> a menu "Manage Attendances" with 3 submenus: - "Attendances" where you can edit attendances - "Employees" where you have a kanban view of the employees (to see who's checked in or print badges) - "Kiosk Mode": fullscreen, made to be at the entrance of companies to allow all employees to check in and out, either with a barcode scanner to scan your badge or by selecting them in a kanban view and checking in or out manually with or without entering their PIN. (enable/disable in Configuration) -> a menu "Configuration" where you can change enable/disable PIN use. - GROUPS : -> HR manager (base.group_hr_manager): full access to the attendance module. -> HR officer (base.group_hr_user): full access except the "Configuration" menu. -> Manual Attendances (base.group_hr_attendance): only access to the attendance menu "My Attendance" to check in and out manually in the back-end -> Employee (base.group_user): has no access to the attendance module. (should only check in and out through the "Kiosk Mode" put at his disposal) - Views adaptation to the new fields, addition of a presence indicator (green/red dot) to employee kanban and form views.
2016-05-30[IMP] hr_attendance: remove extra rpcGéry Debongnie
The attendance module needs to know if the user is an employee before putting itself in the systray. This commit add the information in the session infos, and use it directly.
2015-06-02[LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate textOlivier Dony
- Preserved explicit 3rd-party copyright notices - Explicit boilerplate should not be necessary - copyright law applies automatically in all countries thanks to Berne Convention + WTO rules, and a reference to the applicable license is clear enough.
2015-03-31[IMP] config: various improvementsGaurav Panchal
- sales_team: demo data enable sales team features to users - hr_attendance: admin can enable attendance features from hr settings - multi_company: if admin enable these features, she gets the multi-company usability settings - account: enabling multi-currency functionalities enable pricelist functionalities
2014-12-31[REF] remove vim modelines and resulting trailing blank linesLeonardo Donelli
Let 2015 be a year without modelines! cf #4174
2012-09-21[IMP]add config file in hr_attendancePinakin Nayi (OpenERP)
bzr revid: pna@tinyerp.com-20120921134405-0q3mwq6dsp2fw4yu
2010-01-12[FIX] Change the year of the copyrightStephane Wirtel
bzr revid: stephane@openerp.com-20100112091839-a6p7tenhb4e4zxyx
2009-10-14Changed licencing termsPSO(OpenERP)
bzr revid: hda@tinyerp.com-20091014111534-1vtk21rz8byhszzf
2009-10-13changed encoding to coding in all py filesChristopheChauvet(syleam)
lp bug: https://launchpad.net/bugs/357182 fixed bzr revid: hda@tinyerp.com-20091013055837-3ntnbe8b938xmk97
2009-01-04[IMP] Update the copyright to 2009Stephane Wirtel
bzr revid: stephane@tinyerp.com-20090104221250-55q32ayj2t8kzb2k
2008-11-03passing modules in GPL-3Christophe Simonis
bzr revid: christophe@tinyerp.com-20081103191856-jhcivvwb16fvz2os
2008-09-18merge pso branchHarshad Modi
bzr revid: hmo@tinyerp.com-20080918154210-24ewi2d25azyom9i
2008-09-17made report named attendance_errors.sxw in hr_attendance modulePriyesh
bzr revid: solanki.priyesh@gmail.com-20080917065334-b1r1285hrzt75v5f
2008-09-16make new module named hr_attendancePriyesh
bzr revid: solanki.priyesh@gmail.com-20080916142924-e8b4augwkzfx2vz6