f6fdde96bddfedf8764cd8a73089e44340d476ae
Purpose ======= There are currently multiple ways to determine if an employee is presence or absent: - login state (user status on chat) - checkin/checkout from the Attendance app - leave - hr_presence (email, ip) Those states are displayed in several different places and can be inconsitent. e.g. Logged in -> green in the chat Not checked in -> red on the employee kanban view. The multiple ways to determine employee presence described above should be aggregated together to have a better consistency. Specification ============= There are 3 presence states (previously defined in module `hr_presence`), namely `present`, `absent`, `to_define`. They are now defined as soon as `hr` module is installed. The state computation can have several behaviors according to which apps are installed: 1. `hr` is installed Check employee presence based on login by default (only for employees with a user). Kanban state (private and public): should be green when logged in, red when logged out and orange when the user is away. Private employee form: Display a stat button "Connected" on the form view when the user is logged in or "Last Activity xx/xx/xxx" otherwise. 2. `hr_attendance` is installed: when the user is logged out, the state is determined from the checked in/out state. But when the user is logged in, consider the user as present (even if he checked out). Kanban state: green for checked in, red for checked out Private form view: attendance stat button. 3. `hr_holidays` is installed: Has the highest priority if the employee is on leave. Kanban state: red if employee is on leave. Private form view: stat button "Absent Until xx/xx/xxxx" if employee is on leave. 4. `hr_presence` is installed: Two additionnal presence checking option: emails sent and IP address connected. Once a user sent an email or the IP address was connected, he is considered present for the entire day. There should be at most one stat button on the employee form view, with the relevent information. Task id: 2024482 closes odoo/odoo#34933 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%