Initial commit: Odoomates Odoo packages (12 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:49:21 +02:00
commit 3b38c49bf0
526 changed files with 34983 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 Accounting_pdf_reports Module - accounting_pdf_reports
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 accounting_pdf_reports. Configure related models, access rights, and options as needed.

View file

@ -0,0 +1,3 @@
# Controllers
This module does not define custom HTTP controllers.

View file

@ -0,0 +1,5 @@
# Dependencies
This addon depends on:
- [account](../../odoo-bringout-oca-ocb-account)

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

View file

@ -0,0 +1,7 @@
# Install
```bash
pip install odoo-bringout-odoomates-accounting_pdf_reports"
# or
uv pip install odoo-bringout-odoomates-accounting_pdf_reports"
```

View file

@ -0,0 +1,14 @@
# Models
Detected core models and extensions in accounting_pdf_reports.
```mermaid
classDiagram
class account_account_type
class account_financial_report
class account_move_line
```
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: accounting_pdf_reports. Provides features documented in upstream Odoo 16 under this addon.
- Source: OCA/OCB 16.0, addon accounting_pdf_reports
- License: LGPL-3

View file

@ -0,0 +1,60 @@
# Reports
Report definitions and templates in accounting_pdf_reports.
```mermaid
classDiagram
class ReportAgedPartnerBalance
AbstractModel <|-- ReportAgedPartnerBalance
class ReportGeneralLedger
AbstractModel <|-- ReportGeneralLedger
class ReportJournal
AbstractModel <|-- ReportJournal
class ReportTrialBalance
AbstractModel <|-- ReportTrialBalance
class ReportFinancial
AbstractModel <|-- ReportFinancial
class ReportPartnerLedger
AbstractModel <|-- ReportPartnerLedger
class ReportTax
AbstractModel <|-- ReportTax
```
## Available Reports
### PDF/Document Reports
- **General Ledger** (PDF/Print)
- **Partner Ledger** (PDF/Print)
- **Trial Balance** (PDF/Print)
- **Financial Report** (PDF/Print)
- **Tax Report** (PDF/Print)
- **Aged Partner Balance** (PDF/Print)
- **Journals Audit** (PDF/Print)
- **Journals Entries** (PDF/Print)
## Report Files
- **__init__.py** (Python logic)
- **report_aged_partner.py** (Python logic)
- **report_aged_partner.xml** (XML template/definition)
- **report_financial.py** (Python logic)
- **report_financial.xml** (XML template/definition)
- **report_general_ledger.py** (Python logic)
- **report_general_ledger.xml** (XML template/definition)
- **report_journal_audit.xml** (XML template/definition)
- **report_journal_entries.xml** (XML template/definition)
- **report_journal.py** (Python logic)
- **report_partner_ledger.py** (Python logic)
- **report_partner_ledger.xml** (XML template/definition)
- **report_tax.py** (Python logic)
- **report_tax.xml** (XML template/definition)
- **report_trial_balance.py** (Python logic)
- **report_trial_balance.xml** (XML template/definition)
- **report.xml** (XML template/definition)
## 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

View file

@ -0,0 +1,34 @@
# Security
Access control and security definitions in accounting_pdf_reports.
## Access Control Lists (ACLs)
Model access permissions defined in:
- **[ir.model.access.csv](../accounting_pdf_reports/security/ir.model.access.csv)**
- 24 model access rules
## Record Rules
Row-level security rules defined in:
```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](../accounting_pdf_reports/security/ir.model.access.csv)**
- Model access permissions (CRUD rights)
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/nix_odoo_web_server.py --db-name mydb --addon accounting_pdf_reports
```

View file

@ -0,0 +1,18 @@
# Wizards
Transient models exposed as UI wizards in accounting_pdf_reports.
```mermaid
classDiagram
class AccountAgedTrialBalance
class AccountBalanceReport
class AccountCommonAccountReport
class AccountCommonJournalReport
class AccountCommonReport
class AccountingCommonPartnerReport
class AccountingReport
class AccountPartnerLedger
class AccountPrintJournal
class AccountReportGeneralLedger
class AccountTaxReport
```