From 5ff34abeaea15b01537bd2f66bcc258fa335060c Mon Sep 17 00:00:00 2001 From: Ghostdev9410 Date: Mon, 23 Feb 2026 10:27:42 +0100 Subject: [PATCH 1/3] [FIX/IMP] iot_oca: modernize kanban view and fix colorpicker crash - Switched to native Odoo 18 card and menu templates. - Resolved Javascript crash when selecting colors. - Implemented highlight_color for native color visualization. - Added title attributes to icons for accessibility compliance (green CI). - Removed redundant containers to fix nested border layout issues. --- iot_oca/README.rst | 11 +- iot_oca/readme/CONTRIBUTORS.md | 5 +- iot_oca/static/description/index.html | 29 ++--- iot_oca/views/iot_device_views.xml | 171 ++++++++++++++------------ 4 files changed, 111 insertions(+), 105 deletions(-) diff --git a/iot_oca/README.rst b/iot_oca/README.rst index 0551809d..68ad2687 100644 --- a/iot_oca/README.rst +++ b/iot_oca/README.rst @@ -1,7 +1,3 @@ -.. image:: https://odoo-community.org/readme-banner-image - :target: https://odoo-community.org/get-involved?utm_source=readme - :alt: Odoo Community Association - ======== IoT Base ======== @@ -17,7 +13,7 @@ IoT Base .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status :alt: Beta -.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fiot-lightgray.png?logo=github @@ -60,8 +56,9 @@ Authors Contributors ------------ -- Enric Tobella -- ViraWeb123 +- Enric Tobella etobella@creublanca.es +- ViraWeb123 info@viraweb123.ir +- Ghostdev9410 riccardoluzi52@gmail.com Maintainers ----------- diff --git a/iot_oca/readme/CONTRIBUTORS.md b/iot_oca/readme/CONTRIBUTORS.md index 531fb5f9..d0fe736d 100644 --- a/iot_oca/readme/CONTRIBUTORS.md +++ b/iot_oca/readme/CONTRIBUTORS.md @@ -1,2 +1,3 @@ -- Enric Tobella \<\> -- ViraWeb123 \<\> +- Enric Tobella +- ViraWeb123 +- Ghostdev9410 diff --git a/iot_oca/static/description/index.html b/iot_oca/static/description/index.html index 6700fbbc..ec3bd863 100644 --- a/iot_oca/static/description/index.html +++ b/iot_oca/static/description/index.html @@ -3,7 +3,7 @@ -README.rst +IoT Base -
+
+

IoT Base

- - -Odoo Community Association - -
-

IoT Base

-

Beta License: AGPL-3 OCA/iot Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/iot Translate me on Weblate Try me on Runboat

This addon is a base module used for all iot modules.

Table of contents

@@ -389,7 +384,7 @@

IoT Base

-

Bug Tracker

+

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed @@ -397,22 +392,23 @@

Bug Tracker

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

  • Creu Blanca
-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -425,6 +421,5 @@

Maintainers

-
diff --git a/iot_oca/views/iot_device_views.xml b/iot_oca/views/iot_device_views.xml index e1eaa6b4..2332a631 100644 --- a/iot_oca/views/iot_device_views.xml +++ b/iot_oca/views/iot_device_views.xml @@ -93,7 +93,7 @@ iot.device.kanban iot.device - + @@ -102,95 +102,108 @@ + + + + + Edit + + + Delete + + +
- -
-
- default_image +
+
+
+ + +
+
+ + IP: +
+
+ + Last contact: +
+
+ +
+
+
+
+ +
+
+ + + + Device + -
-
-
- - - -
-
-
- -
-
IP:
-
Last contact:
- -
-
- -
-
-
-
-
+
From d8b6625aba241129403cabc5f583fdcf7d77866f Mon Sep 17 00:00:00 2001 From: Ghostdev9410 Date: Tue, 24 Feb 2026 11:09:43 +0100 Subject: [PATCH 2/3] [IMP] iot_oca: refine kanban layout and follow odoo 18 standards - Removed legacy and redundant div tags as per core v18 standards. - Replaced non-semantic containers with main and aside tags. - Optimized image placement and tag spacing to prevent text clipping. - Integrated communication system metadata into the main vertical list. - Cleaned up pre-template field declarations for better performance. --- iot_oca/views/iot_device_views.xml | 123 +++++++++++++---------------- 1 file changed, 56 insertions(+), 67 deletions(-) diff --git a/iot_oca/views/iot_device_views.xml b/iot_oca/views/iot_device_views.xml index 2332a631..4f846fd6 100644 --- a/iot_oca/views/iot_device_views.xml +++ b/iot_oca/views/iot_device_views.xml @@ -94,16 +94,12 @@ iot.device - - - - - + @@ -122,90 +118,83 @@ - -
-
- - - -
-
-
+ +
+
+
+ + System: +
IP:
Last contact:
-
- -
-
-
+ + +
+ + +
From 6bf2be9212aa5dbf6255163c1cca29a88df5f4e3 Mon Sep 17 00:00:00 2001 From: Ghostdev9410 Date: Thu, 26 Feb 2026 08:38:57 +0100 Subject: [PATCH 3/3] fix(iot_oca): correct web_ribbon attrs and remove redundant domain - Use 'title' attr and 'text-bg-danger' class on web_ribbon - Remove empty domain on group_by filter --- iot_oca/views/iot_device_views.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/iot_oca/views/iot_device_views.xml b/iot_oca/views/iot_device_views.xml index 4f846fd6..a037f6fa 100644 --- a/iot_oca/views/iot_device_views.xml +++ b/iot_oca/views/iot_device_views.xml @@ -25,8 +25,8 @@