diff --git a/web_widget_mermaid/README.md b/web_widget_mermaid_field/README.md similarity index 60% rename from web_widget_mermaid/README.md rename to web_widget_mermaid_field/README.md index e1454ef..5fa725d 100644 --- a/web_widget_mermaid/README.md +++ b/web_widget_mermaid_field/README.md @@ -1,6 +1,6 @@ -# Mermaid Widget - Odoo Module +# Mermaid Widget Field - Odoo Module Add the Mermaid.js library to Odoo and create a widget to display Mermaid diagrams in Odoo views. ## Mermaid Widget Screenshot -![Mermaid Widget Screenshot](https://raw.githubusercontent.com/VictorHachard/odoo-modules/17.0/web_widget_mermaid/static/description/banner.png) +![Mermaid Widget Screenshot](https://raw.githubusercontent.com/VictorHachard/odoo-modules/17.0/web_widget_mermaid_field/static/description/banner.png) diff --git a/web_widget_mermaid/__init__.py b/web_widget_mermaid_field/__init__.py similarity index 100% rename from web_widget_mermaid/__init__.py rename to web_widget_mermaid_field/__init__.py diff --git a/web_widget_mermaid/__manifest__.py b/web_widget_mermaid_field/__manifest__.py similarity index 72% rename from web_widget_mermaid/__manifest__.py rename to web_widget_mermaid_field/__manifest__.py index 4c9cdff..5fac220 100644 --- a/web_widget_mermaid/__manifest__.py +++ b/web_widget_mermaid_field/__manifest__.py @@ -14,9 +14,9 @@ "depends": ["web"], "assets": { "web.assets_backend": [ - "web_widget_mermaid/static/src/js/mermaid_10_9_1.js", - "web_widget_mermaid/static/src/js/web_widget_mermaid.js", - "web_widget_mermaid/static/src/xml/mermaid_field.xml", + "web_widget_mermaid_field/static/src/js/mermaid_10_9_1.js", + "web_widget_mermaid_field/static/src/js/web_widget_mermaid.js", + "web_widget_mermaid_field/static/src/xml/mermaid_field.xml", ], }, "installable": True, diff --git a/web_widget_mermaid/static/description/banner.png b/web_widget_mermaid_field/static/description/banner.png similarity index 100% rename from web_widget_mermaid/static/description/banner.png rename to web_widget_mermaid_field/static/description/banner.png diff --git a/web_widget_mermaid/static/description/index.html b/web_widget_mermaid_field/static/description/index.html similarity index 90% rename from web_widget_mermaid/static/description/index.html rename to web_widget_mermaid_field/static/description/index.html index 0aa6e1f..c1dd394 100644 --- a/web_widget_mermaid/static/description/index.html +++ b/web_widget_mermaid_field/static/description/index.html @@ -28,7 +28,7 @@
To update the library, you can download the latest minified version and replace the file in the module.
diff --git a/web_widget_mermaid/static/src/js/mermaid_10_9_1.js b/web_widget_mermaid_field/static/src/js/mermaid_10_9_1.js similarity index 100% rename from web_widget_mermaid/static/src/js/mermaid_10_9_1.js rename to web_widget_mermaid_field/static/src/js/mermaid_10_9_1.js diff --git a/web_widget_mermaid/static/src/js/web_widget_mermaid.js b/web_widget_mermaid_field/static/src/js/web_widget_mermaid.js similarity index 95% rename from web_widget_mermaid/static/src/js/web_widget_mermaid.js rename to web_widget_mermaid_field/static/src/js/web_widget_mermaid.js index 535379e..79b6792 100644 --- a/web_widget_mermaid/static/src/js/web_widget_mermaid.js +++ b/web_widget_mermaid_field/static/src/js/web_widget_mermaid.js @@ -6,7 +6,7 @@ import { registry } from "@web/core/registry"; import { uniqueId } from "@web/core/utils/functions"; export class MermaidField extends TextField { - static template = 'web_widget_mermaid.MermaidField'; + static template = 'web_widget_mermaid_field.MermaidField'; static props = { ...TextField.props, diff --git a/web_widget_mermaid/static/src/xml/mermaid_field.xml b/web_widget_mermaid_field/static/src/xml/mermaid_field.xml similarity index 79% rename from web_widget_mermaid/static/src/xml/mermaid_field.xml rename to web_widget_mermaid_field/static/src/xml/mermaid_field.xml index 1362be6..7fab03d 100644 --- a/web_widget_mermaid/static/src/xml/mermaid_field.xml +++ b/web_widget_mermaid_field/static/src/xml/mermaid_field.xml @@ -1,7 +1,7 @@