# satheeshkumaresh/odoopim18-demo2025 architecture

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

- Interactive diagram: https://gitdiagram.com/satheeshkumaresh/odoopim18-demo2025
- Repository: https://github.com/satheeshkumaresh/odoopim18-demo2025

## Overview

This repository contains three Odoo addons: chromatic color sorting, concurrent-edit restrictions for PIM records, and a backend language selector. The main workflow is session-aware editing of protected records; chromatic sorting and language switching are separate capabilities. The graph includes every indexed core model, including family products, and the read JavaScript controller. Some views and manifests are unsampled, so their wiring is not inferred; the family-products implementation is likewise not described beyond its indexed module.

Main entry points: [`concurrent_user_restriction/models/session_info.py`](https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/concurrent_user_restriction/models/session_info.py) (Edit Sessions), [`easy_language_selector/controllers/easy_language_selector.py`](https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/easy_language_selector/controllers/easy_language_selector.py) (Language Selector Routes), [`chromatic_sorting/controllers/chromatic_sorting_controller.py`](https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/chromatic_sorting/controllers/chromatic_sorting_controller.py) (Sorting Route), [`concurrent_user_restriction/models/family_attribute.py`](https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/concurrent_user_restriction/models/family_attribute.py) (Family Editing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_chromatic["Color Sorting"]
  node_chromatic_route["Sorting Route"]
  node_chromatic_models[("Sorting and Colors")]
end

subgraph group_editing["Concurrent Editing"]
  node_family_edit["Family Editing"]
  node_group_edit["Attribute Group Editing<br/>[attribute_group.py]"]
  node_attribute_edit["Product Attribute Editing"]
  node_brand_edit["Brand Editing<br/>[product_brand.py]"]
  node_supplier_edit["Supplier Editing<br/>[supplier_info.py]"]
  node_session_records[("Edit Sessions<br/>[session_info.py]")]
  node_family_products["Family Products<br/>[family_products.py]"]
  node_form_controller["Form Controller<br/>[form_controller.js]"]
end

subgraph group_language["Language Selection"]
  node_language_route["Language Selector Routes"]
  node_language_catalog[("Language Catalog")]
  node_user_preferences[("User Preferences")]
end

node_web_user(("Web User"))

node_web_user -->|"requests sort page"| node_chromatic_route
node_chromatic_route -->|"returns page"| node_web_user
node_family_edit -->|"reads and updates"| node_session_records
node_group_edit -->|"reads and updates"| node_session_records
node_attribute_edit -->|"reads and updates"| node_session_records
node_brand_edit -->|"reads and updates"| node_session_records
node_supplier_edit -->|"reads and updates"| node_session_records
node_session_records -->|"links family"| node_family_edit
node_session_records -->|"links brand"| node_brand_edit
node_session_records -->|"links attribute"| node_attribute_edit
node_session_records -->|"links group"| node_group_edit
node_session_records -->|"links supplier"| node_supplier_edit
node_web_user -->|"selects language"| node_language_route
node_language_route -->|"searches languages"| node_language_catalog
node_language_route -->|"updates language"| node_user_preferences

click node_chromatic_route "https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/chromatic_sorting/controllers/chromatic_sorting_controller.py"
click node_chromatic_models "https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/chromatic_sorting/models/chromatic_sorting.py"
click node_family_edit "https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/concurrent_user_restriction/models/family_attribute.py"
click node_group_edit "https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/concurrent_user_restriction/models/attribute_group.py"
click node_attribute_edit "https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/concurrent_user_restriction/models/product_attribute.py"
click node_brand_edit "https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/concurrent_user_restriction/models/product_brand.py"
click node_supplier_edit "https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/concurrent_user_restriction/models/supplier_info.py"
click node_session_records "https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/concurrent_user_restriction/models/session_info.py"
click node_family_products "https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/concurrent_user_restriction/models/family_products.py"
click node_form_controller "https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/concurrent_user_restriction/static/src/js/form_controller.js"
click node_language_route "https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/easy_language_selector/controllers/easy_language_selector.py"

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_chromatic_route,node_chromatic_models,node_web_user toneBlue
class node_family_edit,node_group_edit,node_attribute_edit,node_brand_edit,node_supplier_edit,node_session_records,node_family_products,node_form_controller toneAmber
class node_language_route,node_language_catalog,node_user_preferences toneMint
```

## Components

### Color Sorting

- [Sorting Route](https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/chromatic_sorting/controllers/chromatic_sorting_controller.py): `chromatic_sorting/controllers/chromatic_sorting_controller.py`
- [Sorting and Colors](https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/chromatic_sorting/models/chromatic_sorting.py): `chromatic_sorting/models/chromatic_sorting.py`

### Concurrent Editing

- [Family Editing](https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/concurrent_user_restriction/models/family_attribute.py): `concurrent_user_restriction/models/family_attribute.py`
- [Attribute Group Editing](https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/concurrent_user_restriction/models/attribute_group.py): `concurrent_user_restriction/models/attribute_group.py`
- [Product Attribute Editing](https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/concurrent_user_restriction/models/product_attribute.py): `concurrent_user_restriction/models/product_attribute.py`
- [Brand Editing](https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/concurrent_user_restriction/models/product_brand.py): `concurrent_user_restriction/models/product_brand.py`
- [Supplier Editing](https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/concurrent_user_restriction/models/supplier_info.py): `concurrent_user_restriction/models/supplier_info.py`
- [Edit Sessions](https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/concurrent_user_restriction/models/session_info.py): `concurrent_user_restriction/models/session_info.py`
- [Family Products](https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/concurrent_user_restriction/models/family_products.py): `concurrent_user_restriction/models/family_products.py`
- [Form Controller](https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/concurrent_user_restriction/static/src/js/form_controller.js): `concurrent_user_restriction/static/src/js/form_controller.js`

### Language Selection

- [Language Selector Routes](https://github.com/satheeshkumaresh/odoopim18-demo2025/blob/main/easy_language_selector/controllers/easy_language_selector.py): `easy_language_selector/controllers/easy_language_selector.py`
- **Language Catalog**
- **User Preferences**

### Other components

- **Web User**

## Connections

- Web User → Sorting Route: requests sort page (evidence: `chromatic_sorting/controllers/chromatic_sorting_controller.py`)
- Sorting Route → Web User: returns page (evidence: `chromatic_sorting/controllers/chromatic_sorting_controller.py`)
- Family Editing → Edit Sessions: reads and updates (evidence: `concurrent_user_restriction/models/family_attribute.py`)
- Attribute Group Editing → Edit Sessions: reads and updates (evidence: `concurrent_user_restriction/models/attribute_group.py`)
- Product Attribute Editing → Edit Sessions: reads and updates (evidence: `concurrent_user_restriction/models/product_attribute.py`)
- Brand Editing → Edit Sessions: reads and updates (evidence: `concurrent_user_restriction/models/product_brand.py`)
- Supplier Editing → Edit Sessions: reads and updates (evidence: `concurrent_user_restriction/models/supplier_info.py`)
- Edit Sessions → Family Editing: links family (evidence: `concurrent_user_restriction/models/session_info.py`)
- Edit Sessions → Brand Editing: links brand (evidence: `concurrent_user_restriction/models/session_info.py`)
- Edit Sessions → Product Attribute Editing: links attribute (evidence: `concurrent_user_restriction/models/session_info.py`)
- Edit Sessions → Attribute Group Editing: links group (evidence: `concurrent_user_restriction/models/session_info.py`)
- Edit Sessions → Supplier Editing: links supplier (evidence: `concurrent_user_restriction/models/session_info.py`)
- Web User → Language Selector Routes: selects language (evidence: `easy_language_selector/controllers/easy_language_selector.py`)
- Language Selector Routes → Language Catalog: searches languages (evidence: `easy_language_selector/controllers/easy_language_selector.py`)
- Language Selector Routes → User Preferences: updates language (evidence: `easy_language_selector/controllers/easy_language_selector.py`)
