# odoo-dev/tutorials architecture

> Architecture diagram of the GitHub repository odoo-dev/tutorials, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/odoo-dev/tutorials
- Repository: https://github.com/odoo-dev/tutorials

## Overview

##### Main Components

a) Source Repository Components:
- Internal Tutorial Repository (Private)
- Public Tutorial Repository (GitHub)
- Branch Management System

b) User Access Components:
- Odoo Employee Access Layer
- Public Contributor Access Layer

##### Workflow and Interaction Elements

a) Development Flow:
- Internal development branches
- Synchronization mechanism with public repository
- Pull request handling system

##### Recommended Component Representation

- Blue for internal repository
- Green for public repository

- Red for restricted/internal access
- Green for public access

##### Important Relationships

- Branch synchronization between repositories
- Pull request flow from public to internal
- Development workflow directions

##### The relationship between the repositories

Keep the abstraction level focused on the repository relationship and access patterns rather than technical implementation details, as this is primarily a workflow and access control system rather than a complex technical architecture.

- Access boundary representations
- Any special symbols used

- Where to make changes (internal vs public)
- How code flows between repositories
- Who can access what
- The proper contribution workflow

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Nodes
    subgraph Internal ["Internal Environment"]
        InternalRepo[(Internal Tutorial Repository)]
        InternalBranch[Internal Development Branches]
        EmpAccess[Employee Access Control]
    end

    subgraph Public ["Public Environment"]
        PublicRepo[(Public GitHub Repository)]
        PublicBranch[Public Development Branches]
        PubAccess[Public Access Control]
    end

    %% Documentation
    Docs[Documentation]
    click Docs "https://github.com/odoo-dev/tutorials/blob/master/README.md"

    %% Relationships
    InternalRepo --> InternalBranch
    InternalBranch --> PublicRepo
    PublicRepo --> PublicBranch
    PublicBranch -.-> InternalRepo
    
    EmpAccess --> InternalRepo
    PubAccess --> PublicRepo
    
    Docs --- InternalRepo
    Docs --- PublicRepo

    %% Styling
    classDef internal fill:#b3d1ff,stroke:#0066ff
    classDef public fill:#90EE90,stroke:#006400
    classDef access fill:#FFE4E1,stroke:#FF0000
    classDef doc fill:#FFE4B5,stroke:#DAA520

    class InternalRepo,InternalBranch internal
    class PublicRepo,PublicBranch public
    class EmpAccess,PubAccess access
    class Docs doc

    %% Legend
    subgraph Legend
        L1[Internal Components]:::internal
        L2[Public Components]:::public
        L3[Access Control]:::access
        L4[Documentation]:::doc
        L5["--> Direct Flow"]
        L6["-.-> Pull Request Flow"]
    end
```
