Initial commit: Core packages

This commit is contained in:
Ernad Husremovic 2025-08-29 15:20:45 +02:00
commit 12c29a983b
9512 changed files with 8379910 additions and 0 deletions

View 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 Mail Module - mail
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.

View file

@ -0,0 +1,3 @@
# Configuration
Refer to Odoo settings for mail. Configure related models, access rights, and options as needed.

View 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.

View file

@ -0,0 +1,8 @@
# Dependencies
This addon depends on:
- base
- [base_setup](../../odoo-bringout-oca-ocb-base_setup)
- [bus](../../odoo-bringout-oca-ocb-bus)
- [web_tour](../../odoo-bringout-oca-ocb-web_tour)

View 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 mail or install in UI.

View file

@ -0,0 +1,7 @@
# Install
```bash
pip install odoo-bringout-oca-ocb-mail"
# or
uv pip install odoo-bringout-oca-ocb-mail"
```

View file

@ -0,0 +1,65 @@
# Models
Detected core models and extensions in mail.
```mermaid
classDiagram
class fetchmail_server
class ir_actions_server
class ir_mail_server
class mail_activity
class mail_activity_mixin
class mail_activity_type
class mail_alias
class mail_alias_mixin
class mail_blacklist
class mail_channel
class mail_channel_member
class mail_channel_rtc_session
class mail_composer_mixin
class mail_followers
class mail_gateway_allowed
class mail_guest
class mail_ice_server
class mail_link_preview
class mail_mail
class mail_message
class mail_message_reaction
class mail_message_schedule
class mail_message_subtype
class mail_notification
class mail_render_mixin
class mail_shortcode
class mail_template
class mail_thread
class mail_thread_blacklist
class mail_thread_cc
class mail_tracking_value
class publisher_warranty_contract
class res_company
class res_groups
class res_partner
class res_users
class res_users_settings
class res_users_settings_volumes
class template_reset_mixin
class base
class ir_actions_act_window_view
class ir_attachment
class ir_config_parameter
class ir_http
class ir_model
class ir_model_fields
class ir_qweb
class ir_ui_view
class ir_websocket
class mail_render_mixin
class mail_thread
class res_company
class res_config_settings
class res_groups
```
Notes
- Classes show model technical names; fields omitted for brevity.
- Items listed under _inherit are extensions of existing models.

View file

@ -0,0 +1,6 @@
# Overview
Packaged Odoo addon: mail. Provides features documented in upstream Odoo 16 under this addon.
- Source: OCA/OCB 16.0, addon mail
- License: LGPL-3

View file

@ -0,0 +1,3 @@
# Reports
This module does not define custom reports.

View file

@ -0,0 +1,41 @@
# Security
Access control and security definitions in mail.
## Access Control Lists (ACLs)
Model access permissions defined in:
- **[ir.model.access.csv](../mail/security/ir.model.access.csv)**
- 68 model access rules
## Record Rules
Row-level security rules defined in:
## Security Groups & Configuration
Security groups and permissions defined in:
- **[mail_security.xml](../mail/security/mail_security.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:
- **[ir.model.access.csv](../mail/security/ir.model.access.csv)**
- Model access permissions (CRUD rights)
- **[mail_security.xml](../mail/security/mail_security.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

View file

@ -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.

View file

@ -0,0 +1,7 @@
# Usage
Start Odoo including this addon (from repo root):
```bash
python3 scripts/odoo_web_server.py --db-name mydb --addon mail
```

View file

@ -0,0 +1,16 @@
# Wizards
Transient models exposed as UI wizards in mail.
```mermaid
classDiagram
class BaseModuleUninstall
class Invite
class MailBlacklistRemove
class MailComposer
class MailResendMessage
class MailTemplatePreview
class MailTemplateReset
class MergePartnerAutomatic
class PartnerResend
```