TIP: You can type at any time to perform a new search.
HR Timesheet Sheet Warning
hr_timesheet_sheet_warning · OCA/timesheet
- Repository
- OCA/timesheet · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Human Resources
- Folder size
- 0.08 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/timesheet
- Last tracking update
- 2026-08-07 08:43:00
- Authors
- Odoo Community Association (OCA), ForgeFlow
- Maintainers
- Odoo Community Association (OCA), ForgeFlow
- Committers
- Weblate, OCA-git-bot, oca-ci, JasminSForgeFlow
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
This module provides functionality for defining custom warning criteria related to Timesheet Sheets using Python expressions. Users can establish specific conditions for evaluating certain aspects of the Sheets. Once the warnings are defined, the module facilitates a systematic evaluation of Timesheet Sheets against these conditions. It generates individual warnings for each Sheet, if the warnings criteria are met.
Code Analysis ⓘ
Views touched (6)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_timesheet_sheet_form |
hr_timesheet.sheet.form - hr_timesheet_sheet_warning | hr_timesheet.sheet | form | Inherits hr_timesheet_sheet.hr_timesheet_sheet_form |
hr_timesheet_sheet_warning_definition_form |
hr_timesheet.sheet.warning.definition.form | hr_timesheet.sheet.warning.definition | form | New |
hr_timesheet_sheet_warning_definition_search |
hr_timesheet.sheet.warning.definition.search | hr_timesheet.sheet.warning.definition | search | New |
hr_timesheet_sheet_warning_definition_tree |
hr_timesheet.sheet.warning.definition.tree | hr_timesheet.sheet.warning.definition | list | New |
hr_timesheet_sheet_warning_item_tree |
hr_timesheet.sheet.warning.item.tree | hr_timesheet.sheet.warning.item | list | New |
view_hr_timesheet_sheet_filter |
hr_timesheet.sheet.filter - hr_timesheet_sheet_warning | hr_timesheet.sheet | Inherits hr_timesheet_sheet.view_hr_timesheet_sheet_filter |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (3)
New fields (1)
-
hr_timesheet_sheet_warning_item_idsOne2many → hr_timesheet.sheet.warning.itemcomodel_name='hr_timesheet.sheet.warning.item'inverse_name='sheet_id'readonly=True
-
action_generate_warnings(self) -
action_timesheet_confirm(self)
New fields (4)
-
activeBooleandefault=True -
nameCharrequired=Truestring='Description' -
python_codeTextdefault='# Available local variables:\n# - sheet: A hr_timesheet.sheet record\nTrue'help='Write Python code that defines when this warning should raise. The result of executing the expression must be a boolean.'string='Warning Expression' -
warning_domainChardefault='[]'help='Domain based on Timesheet Sheet, to define if the warning is applicable or not.'string='Applicable Domain'
-
evaluate_definition(self, sheet) -
is_warning_applicable(self, sheet)
New fields (4)
-
company_idMany2onerelated='sheet_id.company_id'store=True -
nameCharcompute='_compute_name' -
sheet_idMany2one → hr_timesheet.sheetcomodel_name='hr_timesheet.sheet'ondelete='cascade' -
warning_definition_idMany2one → hr_timesheet.sheet.warning.definitioncomodel_name='hr_timesheet.sheet.warning.definition'
No public methods.