# hafifamudi/odoo_project_training architecture

> Architecture diagram of the GitHub repository hafifamudi/odoo_project_training, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hafifamudi/odoo_project_training
- Repository: https://github.com/hafifamudi/odoo_project_training

## Overview

Credito is an Odoo application for lending and goods auctions. Its main workflow manages creditors, borrowers and loans, alongside auction listings and participants; users can also request borrower reports and retrieve borrower/creditor data through public API routes. The model files define the domain records, relations, status transitions and validations. The README also identifies searching and reporting as capabilities, but the supplied excerpts show only the report wizard and API searches. Views and report templates are present in the tree, but their runtime wiring was not sampled.

Main entry points: [`wizzard/debitur_report.py`](https://github.com/hafifamudi/odoo_project_training/blob/master/wizzard/debitur_report.py) (Borrower report wizard), [`controllers/controllers.py`](https://github.com/hafifamudi/odoo_project_training/blob/master/controllers/controllers.py) (Public API routes), [`report/report.xml`](https://github.com/hafifamudi/odoo_project_training/blob/master/report/report.xml) (PDF report action), [`models/debitur.py`](https://github.com/hafifamudi/odoo_project_training/blob/master/models/debitur.py) (Borrower records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_domain["Lending and auction domain"]
  node_borrowers[("Borrower records<br/>[debitur.py]")]
  node_creditors[("Creditor records<br/>[kreditur.py]")]
  node_auction_goods[("Auction goods<br/>[barang.py]")]
  node_auction_users[("Auction participants<br/>[user_lelang.py]")]
end

subgraph group_interfaces["User and API interfaces"]
  node_api["Public API routes<br/>[controllers.py]"]
end

subgraph group_reporting["Borrower reporting"]
  node_report_wizard["Borrower report wizard<br/>[debitur_report.py]"]
  node_report_action["PDF report action<br/>[report.xml]"]
  node_report_template["Report template"]
end

node_user(("Odoo user"))

node_api -->|"searches"| node_borrowers
node_api -->|"searches"| node_creditors
node_report_wizard -->|"reads"| node_borrowers
node_report_wizard -->|"invokes"| node_report_action
node_user -.->|"requests report"| node_report_wizard
node_report_action -.->|"uses"| node_report_template

click node_borrowers "https://github.com/hafifamudi/odoo_project_training/blob/master/models/debitur.py"
click node_creditors "https://github.com/hafifamudi/odoo_project_training/blob/master/models/kreditur.py"
click node_auction_goods "https://github.com/hafifamudi/odoo_project_training/blob/master/models/barang.py"
click node_auction_users "https://github.com/hafifamudi/odoo_project_training/blob/master/models/user_lelang.py"
click node_api "https://github.com/hafifamudi/odoo_project_training/blob/master/controllers/controllers.py"
click node_report_wizard "https://github.com/hafifamudi/odoo_project_training/blob/master/wizzard/debitur_report.py"
click node_report_action "https://github.com/hafifamudi/odoo_project_training/blob/master/report/report.xml"
click node_report_template "https://github.com/hafifamudi/odoo_project_training/blob/master/report/wizzard_debiturreport_template.xml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_borrowers,node_creditors,node_auction_goods,node_auction_users,node_user toneBlue
class node_api toneAmber
class node_report_wizard,node_report_action,node_report_template toneMint
```

## Components

### Lending and auction domain

- [Borrower records](https://github.com/hafifamudi/odoo_project_training/blob/master/models/debitur.py): `models/debitur.py`
- [Creditor records](https://github.com/hafifamudi/odoo_project_training/blob/master/models/kreditur.py): `models/kreditur.py`
- [Auction goods](https://github.com/hafifamudi/odoo_project_training/blob/master/models/barang.py): `models/barang.py`
- [Auction participants](https://github.com/hafifamudi/odoo_project_training/blob/master/models/user_lelang.py): `models/user_lelang.py`

### User and API interfaces

- [Public API routes](https://github.com/hafifamudi/odoo_project_training/blob/master/controllers/controllers.py): `controllers/controllers.py`

### Borrower reporting

- [Borrower report wizard](https://github.com/hafifamudi/odoo_project_training/blob/master/wizzard/debitur_report.py): `wizzard/debitur_report.py`
- [PDF report action](https://github.com/hafifamudi/odoo_project_training/blob/master/report/report.xml): `report/report.xml`
- [Report template](https://github.com/hafifamudi/odoo_project_training/blob/master/report/wizzard_debiturreport_template.xml): `report/wizzard_debiturreport_template.xml`

### Other components

- **Odoo user**

## Connections

- Public API routes → Borrower records: searches (evidence: `controllers/controllers.py`)
- Public API routes → Creditor records: searches (evidence: `controllers/controllers.py`)
- Borrower report wizard → Borrower records: reads (evidence: `wizzard/debitur_report.py`)
- Borrower report wizard → PDF report action: invokes (evidence: `wizzard/debitur_report.py`)
- Odoo user → Borrower report wizard: requests report
- PDF report action → Report template: uses
