mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-25 00:32:01 +02:00
Initial commit: Hr packages
This commit is contained in:
commit
62531cd146
2820 changed files with 1432848 additions and 0 deletions
32
odoo-bringout-oca-ocb-hr_timesheet/doc/ARCHITECTURE.md
Normal file
32
odoo-bringout-oca-ocb-hr_timesheet/doc/ARCHITECTURE.md
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# Architecture
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
U[Users] -->|HTTP| V[Views and QWeb Templates]
|
||||
V --> C[Controllers]
|
||||
V --> W[Wizards – Transient Models]
|
||||
C --> M[Models and ORM]
|
||||
W --> M
|
||||
M --> R[Reports]
|
||||
DX[Data XML] --> M
|
||||
S[Security – ACLs and Groups] -. enforces .-> M
|
||||
|
||||
subgraph Hr_timesheet Module - hr_timesheet
|
||||
direction LR
|
||||
M:::layer
|
||||
W:::layer
|
||||
C:::layer
|
||||
V:::layer
|
||||
R:::layer
|
||||
S:::layer
|
||||
DX:::layer
|
||||
end
|
||||
|
||||
classDef layer fill:#eef8ff,stroke:#6ea8fe,stroke-width:1px
|
||||
```
|
||||
|
||||
Notes
|
||||
- Views include tree/form/kanban templates and report templates.
|
||||
- Controllers provide website/portal routes when present.
|
||||
- Wizards are UI flows implemented with `models.TransientModel`.
|
||||
- Data XML loads data/demo records; Security defines groups and access.
|
||||
3
odoo-bringout-oca-ocb-hr_timesheet/doc/CONFIGURATION.md
Normal file
3
odoo-bringout-oca-ocb-hr_timesheet/doc/CONFIGURATION.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Configuration
|
||||
|
||||
Refer to Odoo settings for hr_timesheet. Configure related models, access rights, and options as needed.
|
||||
17
odoo-bringout-oca-ocb-hr_timesheet/doc/CONTROLLERS.md
Normal file
17
odoo-bringout-oca-ocb-hr_timesheet/doc/CONTROLLERS.md
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# Controllers
|
||||
|
||||
HTTP routes provided by this module.
|
||||
|
||||
```mermaid
|
||||
sequenceDiagram
|
||||
participant U as User/Client
|
||||
participant C as Module Controllers
|
||||
participant O as ORM/Views
|
||||
|
||||
U->>C: HTTP GET/POST (routes)
|
||||
C->>O: ORM operations, render templates
|
||||
O-->>U: HTML/JSON/PDF
|
||||
```
|
||||
|
||||
Notes
|
||||
- See files in controllers/ for route definitions.
|
||||
9
odoo-bringout-oca-ocb-hr_timesheet/doc/DEPENDENCIES.md
Normal file
9
odoo-bringout-oca-ocb-hr_timesheet/doc/DEPENDENCIES.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# Dependencies
|
||||
|
||||
This addon depends on:
|
||||
|
||||
- [hr](../../odoo-bringout-oca-ocb-hr)
|
||||
- [hr_hourly_cost](../../odoo-bringout-oca-ocb-hr_hourly_cost)
|
||||
- [analytic](../../odoo-bringout-oca-ocb-analytic)
|
||||
- [project](../../odoo-bringout-oca-ocb-project)
|
||||
- [uom](../../odoo-bringout-oca-ocb-uom)
|
||||
4
odoo-bringout-oca-ocb-hr_timesheet/doc/FAQ.md
Normal file
4
odoo-bringout-oca-ocb-hr_timesheet/doc/FAQ.md
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# FAQ
|
||||
|
||||
- Q: Which Odoo version? A: 16.0 (OCA/OCB packaged).
|
||||
- Q: How to enable? A: Start server with --addon hr_timesheet or install in UI.
|
||||
7
odoo-bringout-oca-ocb-hr_timesheet/doc/INSTALL.md
Normal file
7
odoo-bringout-oca-ocb-hr_timesheet/doc/INSTALL.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Install
|
||||
|
||||
```bash
|
||||
pip install odoo-bringout-oca-ocb-hr_timesheet"
|
||||
# or
|
||||
uv pip install odoo-bringout-oca-ocb-hr_timesheet"
|
||||
```
|
||||
21
odoo-bringout-oca-ocb-hr_timesheet/doc/MODELS.md
Normal file
21
odoo-bringout-oca-ocb-hr_timesheet/doc/MODELS.md
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Models
|
||||
|
||||
Detected core models and extensions in hr_timesheet.
|
||||
|
||||
```mermaid
|
||||
classDiagram
|
||||
class project_task
|
||||
class account_analytic_line
|
||||
class ir_http
|
||||
class ir_ui_menu
|
||||
class project_collaborator
|
||||
class project_project
|
||||
class project_task
|
||||
class res_company
|
||||
class res_config_settings
|
||||
class uom_uom
|
||||
```
|
||||
|
||||
Notes
|
||||
- Classes show model technical names; fields omitted for brevity.
|
||||
- Items listed under _inherit are extensions of existing models.
|
||||
6
odoo-bringout-oca-ocb-hr_timesheet/doc/OVERVIEW.md
Normal file
6
odoo-bringout-oca-ocb-hr_timesheet/doc/OVERVIEW.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Overview
|
||||
|
||||
Packaged Odoo addon: hr_timesheet. Provides features documented in upstream Odoo 16 under this addon.
|
||||
|
||||
- Source: OCA/OCB 16.0, addon hr_timesheet
|
||||
- License: LGPL-3
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
# Patch: Remove App Store Download Links
|
||||
|
||||
## Module: hr_timesheet
|
||||
|
||||
### Description
|
||||
This patch removes mobile app store download links (Apple App Store and Google Play Store) from the HR Timesheet configuration settings view.
|
||||
|
||||
### Files Modified
|
||||
- `hr_timesheet/views/res_config_settings_views.xml`
|
||||
|
||||
### Changes Made
|
||||
|
||||
#### File: hr_timesheet/views/res_config_settings_views.xml
|
||||
**Lines removed: 59-68**
|
||||
|
||||
Removed the following section containing mobile app store download links:
|
||||
```xml
|
||||
<div class="col-lg-3 pe-0">
|
||||
<a href="https://apps.apple.com/be/app/awesome-timesheet/id1078657549" class="align-middle" target="_blank">
|
||||
<img alt="Apple App Store" class="img img-fluid h-100 o_config_app_store" src="project/static/src/img/app_store.png"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-lg-3 pe-0">
|
||||
<a href="https://play.google.com/store/apps/details?id=com.odoo.OdooTimesheets" class="align-middle" target="_blank">
|
||||
<img alt="Google Play Store" class="img img-fluid h-100 o_config_play_store" src="project/static/src/img/play_store.png"/>
|
||||
</a>
|
||||
</div>
|
||||
```
|
||||
|
||||
### Impact
|
||||
- Users will no longer see mobile app store download buttons in the Timesheet configuration settings
|
||||
- The Chrome Web Store link remains available for users
|
||||
- The instructional text about tracking time from mobile apps remains intact
|
||||
- All other timesheet configuration functionality is unaffected
|
||||
|
||||
### Context
|
||||
- The removed links pointed to:
|
||||
- Apple App Store: Awesome Timesheet app
|
||||
- Google Play Store: Odoo Timesheets app
|
||||
- These were displayed in the "Mobile" section of timesheet settings
|
||||
- The Chrome Web Store option for web-based timesheet access is preserved
|
||||
|
||||
### Reason
|
||||
Removal of proprietary mobile app store references while maintaining the web-based timesheet functionality that doesn't require proprietary app stores.
|
||||
|
||||
---
|
||||
**Patch Created:** 2025-08-27
|
||||
**Applied By:** Claude Code Assistant
|
||||
39
odoo-bringout-oca-ocb-hr_timesheet/doc/REPORTS.md
Normal file
39
odoo-bringout-oca-ocb-hr_timesheet/doc/REPORTS.md
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
# Reports
|
||||
|
||||
Report definitions and templates in hr_timesheet.
|
||||
|
||||
```mermaid
|
||||
classDiagram
|
||||
class ReportProjectTaskUser
|
||||
Model <|-- ReportProjectTaskUser
|
||||
class TimesheetsAnalysisReport
|
||||
Model <|-- TimesheetsAnalysisReport
|
||||
```
|
||||
|
||||
## Available Reports
|
||||
|
||||
### PDF/Document Reports
|
||||
- **Timesheets** (PDF/Print)
|
||||
- **Timesheets** (PDF/Print)
|
||||
- **Timesheets** (PDF/Print)
|
||||
- **Timesheets** (PDF/Print)
|
||||
|
||||
### Analytical/Dashboard Reports
|
||||
- **Timesheets by Project** (Analysis/Dashboard)
|
||||
- **Timesheets by Task** (Analysis/Dashboard)
|
||||
|
||||
|
||||
## Report Files
|
||||
|
||||
- **hr_timesheet_report_view.xml** (XML template/definition)
|
||||
- **__init__.py** (Python logic)
|
||||
- **project_report.py** (Python logic)
|
||||
- **project_report_view.xml** (XML template/definition)
|
||||
- **report_timesheet_templates.xml** (XML template/definition)
|
||||
- **timesheets_analysis_report.py** (Python logic)
|
||||
|
||||
## Notes
|
||||
- Named reports above are accessible through Odoo's reporting menu
|
||||
- Python files define report logic and data processing
|
||||
- XML files contain report templates, definitions, and formatting
|
||||
- Reports are integrated with Odoo's printing and email systems
|
||||
45
odoo-bringout-oca-ocb-hr_timesheet/doc/SECURITY.md
Normal file
45
odoo-bringout-oca-ocb-hr_timesheet/doc/SECURITY.md
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
# Security
|
||||
|
||||
Access control and security definitions in hr_timesheet.
|
||||
|
||||
## Access Control Lists (ACLs)
|
||||
|
||||
Model access permissions defined in:
|
||||
- **[ir.model.access.csv](../hr_timesheet/security/ir.model.access.csv)**
|
||||
- 7 model access rules
|
||||
|
||||
## Record Rules
|
||||
|
||||
Row-level security rules defined in:
|
||||
|
||||
## Security Groups & Configuration
|
||||
|
||||
Security groups and permissions defined in:
|
||||
- **[hr_timesheet_security.xml](../hr_timesheet/security/hr_timesheet_security.xml)**
|
||||
- 4 security groups defined
|
||||
- **[ir.model.access.xml](../hr_timesheet/security/ir.model.access.xml)**
|
||||
|
||||
```mermaid
|
||||
graph TB
|
||||
subgraph "Security Layers"
|
||||
A[Users] --> B[Groups]
|
||||
B --> C[Access Control Lists]
|
||||
C --> D[Models]
|
||||
B --> E[Record Rules]
|
||||
E --> F[Individual Records]
|
||||
end
|
||||
```
|
||||
|
||||
Security files overview:
|
||||
- **[hr_timesheet_security.xml](../hr_timesheet/security/hr_timesheet_security.xml)**
|
||||
- Security groups, categories, and XML-based rules
|
||||
- **[ir.model.access.csv](../hr_timesheet/security/ir.model.access.csv)**
|
||||
- Model access permissions (CRUD rights)
|
||||
- **[ir.model.access.xml](../hr_timesheet/security/ir.model.access.xml)**
|
||||
- Security groups, categories, and XML-based rules
|
||||
|
||||
Notes
|
||||
- Access Control Lists define which groups can access which models
|
||||
- Record Rules provide row-level security (filter records by user/group)
|
||||
- Security groups organize users and define permission sets
|
||||
- All security is enforced at the ORM level by Odoo
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
# Troubleshooting
|
||||
|
||||
- Ensure Python and Odoo environment matches repo guidance.
|
||||
- Check database connectivity and logs if startup fails.
|
||||
- Validate that dependent addons listed in DEPENDENCIES.md are installed.
|
||||
7
odoo-bringout-oca-ocb-hr_timesheet/doc/USAGE.md
Normal file
7
odoo-bringout-oca-ocb-hr_timesheet/doc/USAGE.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Usage
|
||||
|
||||
Start Odoo including this addon (from repo root):
|
||||
|
||||
```bash
|
||||
python3 scripts/nix_odoo_web_server.py --db-name mydb --addon hr_timesheet
|
||||
```
|
||||
3
odoo-bringout-oca-ocb-hr_timesheet/doc/WIZARDS.md
Normal file
3
odoo-bringout-oca-ocb-hr_timesheet/doc/WIZARDS.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Wizards
|
||||
|
||||
This module does not include UI wizards.
|
||||
Loading…
Add table
Add a link
Reference in a new issue