Timesheet Reminder
hr_timesheet_reminder · OCA/timesheet
Health
55/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 122 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 5 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.04 MB
Module directory on disk
Code analysis
16 migration notes
5 models
3 views
0 HTTP endpoints
Migration considerations
Reminder— Class 'Reminder' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceReminder— Class 'Reminder' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceReminderConfig— Class 'ReminderConfig' still inherits from the old-style `orm.TransientModel` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceReminderConfig— Class 'ReminderConfig' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceReminderStatus— Class 'ReminderStatus' still inherits from the old-style `orm.TransientModel` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceReminderStatus— Class 'ReminderStatus' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · sourceResCompany— Class 'ResCompany' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourcehr_employee— Class 'hr_employee' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourcehr_employee— Class 'hr_employee' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · sourceview_hr_timesheet_reminder_config_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (3 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.report`) (3 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Timesheet Reports Module
- Add a menu in
Human Resources / Configuration / Timesheet Reminder. It allows to send automatic emails to those who did not complete their timesheet in the last 5 weeks. - Per employee, you can choose to send the reminder or not.
- Add a report in
Human Resources / Reporting / Timesheet / Timesheet Statuswhich displays the state of the last 5 timesheets for all users per company.
This module replaces the modules c2c_timesheet_reports of TinyERP 4 and OpenERP 5.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_timesheet_employee_extd_form_reminder |
hr.timesheet.employee.rmnd_form | hr.employee | form | Inherits hr_timesheet.hr_timesheet_employee_extd_form |
view_hr_timesheet_reminder_config_form |
hr.timesheet.reminder.config.form | hr.timesheet.reminder.config | form | New |
view_hr_timesheet_reminder_status_form |
hr.timesheet.reminder.status.form | hr.timesheet.reminder.status | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (0)
No new fields.
Public methods (1)-
compute_timesheet_status(self, cr, uid, ids, period, context)return the timesheet status for an employee from its id and a period (tuple from date-to date)
New fields (0)
No new fields.
Public methods (5)-
get_config(self, cr, uid, context=None)return the reminder config from the db -
get_cron_id(self, cr, uid, context=None)return the reminder cron's id. Create one if the cron does not exists -
get_message_id(self, cr, uid, context=None)return the message's id. create one if the message does not exists -
run(self, cr, uid, context=None)find the reminder recipients and send them an email -
save_config(self, cr, uid, ids, datas, context=None)save the reminder config
New fields (0)
No new fields.
Public methods (3)-
default_get(self, cr, uid, fields, context=None) -
run(self, cr, uid, ids, context=None)execute the timesheets check and send emails -
save(self, cr, uid, ids, context=None)save defined settings in db
New fields (0)
No new fields.
Public methods (1)-
print_report(self, cr, uid, ids, context=None)
New fields (0)
No new fields.
Public methods (3)-
compute_timesheet_periods(self, cr, uid, company, date, periods_number=5, context=None)return the timeranges to display. This is the 5 last timesheets -
get_last_period_dates(self, cr, uid, company, date, context=None)return the start date and end date of the last period to display -
get_reminder_recipients(self, cr, uid, ids, context=None)Return the list of users that must receive the email
Loading…
Loading…
Loading…
Loading…