diff --git a/relax/README.md b/relax/README.md new file mode 100644 index 00000000..f50feb49 --- /dev/null +++ b/relax/README.md @@ -0,0 +1,5 @@ +# Relaxation Room + +Step into the future with 3D rooms inside Odoo! + +Demo: TODO diff --git a/relax/__init__.py b/relax/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/relax/__manifest__.py b/relax/__manifest__.py new file mode 100644 index 00000000..6680ab10 --- /dev/null +++ b/relax/__manifest__.py @@ -0,0 +1,27 @@ +# Copyright 2024 Ivan Yelizariev +# License OPL-1 (https://www.odoo.com/documentation/user/14.0/legal/licenses/licenses.html#odoo-apps) +{ + "name": "Relaxation Room", + "version": "16.0.1.0.0", + "author": "Ivan Yelizariev", + "license": "OPL-1", + "category": "Human Resources", + "images": ["images/oobo7.jpg"], + "website": "https://odoo-debranding.com", + "support": "help@itpp.dev", + "depends": [], + "data": [ + "views/relax_views.xml", + "data/relax_data.xml", + ], + "assets": { + "web.assets_backend": [ + "relax/static/src/js/relax.js", + "relax/static/src/xml/relax.xml", + "relax/static/src/scss/relax.scss", + ] + }, + "application": True, + "auto_install": False, + "installable": True, +} diff --git a/relax/data/relax_data.xml b/relax/data/relax_data.xml new file mode 100644 index 00000000..1fcc6f9a --- /dev/null +++ b/relax/data/relax_data.xml @@ -0,0 +1,9 @@ + + + + + relax.url + https://bucha.lamourism.com/Brodsky2023.html + + diff --git a/relax/doc/src/index.html b/relax/doc/src/index.html new file mode 100644 index 00000000..e69de29b diff --git a/relax/doc/src/info.yaml b/relax/doc/src/info.yaml new file mode 100644 index 00000000..ff5afb81 --- /dev/null +++ b/relax/doc/src/info.yaml @@ -0,0 +1 @@ +slogan: Relaxation Room for your employees diff --git a/relax/images/oobo7.jpg b/relax/images/oobo7.jpg new file mode 100644 index 00000000..df7093b9 Binary files /dev/null and b/relax/images/oobo7.jpg differ diff --git a/relax/static/description/icon.jpg b/relax/static/description/icon.jpg new file mode 100644 index 00000000..78d6d182 Binary files /dev/null and b/relax/static/description/icon.jpg differ diff --git a/relax/static/description/icon.png b/relax/static/description/icon.png new file mode 100644 index 00000000..ce97c156 Binary files /dev/null and b/relax/static/description/icon.png differ diff --git a/relax/static/src/js/relax.js b/relax/static/src/js/relax.js new file mode 100644 index 00000000..4c0a33b4 --- /dev/null +++ b/relax/static/src/js/relax.js @@ -0,0 +1,23 @@ +/** @odoo-module **/ +import { registry } from "@web/core/registry"; +import rpc from "web.rpc"; + +const { Component, onWillStart } = owl; + +export class RelaxMenu extends Component { + setup() { + this.config = rpc.query({ + model: "ir.config_parameter", + method: "get_param", + args: ["relax.url"], + }); + + onWillStart(async () => { + this.relax_url = await this.config; + }); + } +} + +RelaxMenu.template = "relax.template"; + +registry.category("actions").add("relax", RelaxMenu); diff --git a/relax/static/src/scss/relax.scss b/relax/static/src/scss/relax.scss new file mode 100644 index 00000000..dc095990 --- /dev/null +++ b/relax/static/src/scss/relax.scss @@ -0,0 +1,10 @@ +.relax_container { + width: 100%; + height: 100%; +} + +.relax_container iframe { + display: block; + height: 100vh; + width: 100vw; +} diff --git a/relax/static/src/xml/relax.xml b/relax/static/src/xml/relax.xml new file mode 100644 index 00000000..dd4bb2b4 --- /dev/null +++ b/relax/static/src/xml/relax.xml @@ -0,0 +1,6 @@ + + +
+