Migrate web_diagram from repository Odoo 13 to OCA repository Odoo 18
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 20/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- web-dev
Research direction
Read the linked migration PRs for Odoo 14–18 and the OpenUpgrade PR to understand the migration work already proposed. The issue also raises replacing Raphael.js and deciding where web_diagram_builder belongs, but gives no decided scope or acceptance criteria; clarify those before estimating completion.
Written by the indexing model from the issue text.
Description
I did the migration of module web_diagram from Odoo 13 repository for each version to Odoo 18.
Original source: https://github.com/odoo/odoo/tree/6.1/addons/web_diagram
Final version source : https://github.com/odoo/odoo/tree/13.0/addons/web_diagram
PR odoo 14 https://github.com/OCA/web/pull/3490
PR odoo 15 https://github.com/OCA/web/pull/3491
PR odoo 16 https://github.com/OCA/web/pull/3492
PR odoo 17 https://github.com/OCA/web/pull/3493
PR odoo 18 https://github.com/OCA/web/pull/3494
Q1. Are we going to merge all the repositories from 14 to 18, and adapt OpenUpgrade?
https://github.com/OCA/OpenUpgrade/pull/3232
Q2. Last commit of Raphael.js is 2019
https://github.com/DmitryBaranovskiy/raphael
Maybe we can change the library.
Comparison
| ❌ Raphael.js | ✅ Cytoscape.js | ⚠️ D3.js | ⚠️ Mermaid | ⚠️ Vis.js Network | |
|---|---|---|---|---|---|
| Maintenance | ❌ Abandoned (~2020) | ✅ Very active | ✅ Very active | ✅ Very active | ✅ Active |
| Performance | ⚠️ ~100 nodes | ✅ 10k+ nodes | ✅ 10k+ nodes | ⚠️ ~200 nodes | ✅ 5k+ nodes |
| Auto layout | ❌ Manual | ✅ Built-in (dagre, cola, elk…) | ⚠️ Third-party plugins | ❌ Declarative only | ✅ Built-in force-directed |
| Interactivity | ✅ Yes | ✅ Full | ✅ Full (must be coded) | ❌ Static | ✅ Full |
| License | MIT ✅ | MIT ✅ | ISC ✅ | MIT ✅ | Apache 2.0 / MIT ✅ |
| Bundle size | ~100 KB | ~200 KB | ~50 KB (core) | ~600 KB | ~700 KB |
| Learning curve | Medium | Medium | ⚠️ High | Low | Low |
| Use case | General SVG graphics | Graph / network | Data visualization | Declarative diagrams | Interactive networks |
| GitHub | DmitryBaranovskiy/raphael | cytoscape/cytoscape.js | d3/d3 | mermaid-js/mermaid | visjs/vis-network |
Q3. web_diagram_builder
I create the application to show diagram on selected model with domain builder for Odoo 18. Maybe web_diagram_builder is more appropriate to be on repository https://github.com/oca/server-tools ?
Project in development https://github.com/TechnoLibre/web/tree/18.0_imp_web_diagram_builder
This module depend on web_diagram for example usage.
Can manage multiple diagram :
Can use template, choose model and recursive field, filter domain :
Show diagram of selected data :
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 2.2k
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 30
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OCA/web
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
[19.0] web_timeline: ValueError "Invalid field 'date_start:month'" when grouping by a date fieldPossibly taken @stferraro claimed this today. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 25/100
Maintainers usually reply within 1 day
-
[19.0] web_m2x_options: system parameter + m2o options not working properly when no recordsPossibly taken @CristhianAC claimed this 11 days ago. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 58/100
Maintainers usually reply within 1 day
-
Migration to version 20.0Possibly taken A pull request linked to this issue is open or already merged. Openhelp wanted no stale work in progress
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 1-2 days Newbie friendliness 45/100
Maintainers usually reply within 1 day
Similar issues
-
bug package:workers-shared
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
cloudflare/workers-sdk#16924 · 1 comment ·
Maintainers usually reply within 1 day
-
dashboard
Difficulty 2/5 Half a day Newbie friendliness 78/100
damodharg6/payledger#9 ·
-
parse: child keys like `007`, `1e3`, `0x1f`, `-1` make the parent an empty array and hide the valueOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
area/mobile area/ui good first issue
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
natemoo-re/ultrahtml#102 ·