From 0b7b97c1021c9bc7244abba371363c05ba84dbfe Mon Sep 17 00:00:00 2001 From: FernandoRomera Date: Mon, 5 Aug 2024 10:19:14 +0200 Subject: [PATCH] [MIG] iot_output_oca: Migration to 17.0 --- iot_output_oca/__manifest__.py | 2 +- .../migrations/14.0.1.0.0/pre-migration.py | 15 --------------- iot_output_oca/views/iot_device_output_views.xml | 2 +- iot_output_oca/views/iot_device_views.xml | 4 ++-- 4 files changed, 4 insertions(+), 19 deletions(-) delete mode 100644 iot_output_oca/migrations/14.0.1.0.0/pre-migration.py diff --git a/iot_output_oca/__manifest__.py b/iot_output_oca/__manifest__.py index e75923ea..3176f4b3 100644 --- a/iot_output_oca/__manifest__.py +++ b/iot_output_oca/__manifest__.py @@ -3,7 +3,7 @@ { "name": "IoT Output", - "version": "16.0.1.0.0", + "version": "17.0.1.0.0", "category": "IoT", "author": "Creu Blanca, " "Odoo Community Association (OCA)", "license": "AGPL-3", diff --git a/iot_output_oca/migrations/14.0.1.0.0/pre-migration.py b/iot_output_oca/migrations/14.0.1.0.0/pre-migration.py deleted file mode 100644 index 1179c8c7..00000000 --- a/iot_output_oca/migrations/14.0.1.0.0/pre-migration.py +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright 2021 Creu Blanca -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openupgradelib import openupgrade - -_column_renames = { - "iot_device_output": [("system_id", "communication_system_id")], - "iot_device_output_action": [ - ("system_action_id", "communication_system_action_id") - ], -} - - -@openupgrade.migrate() -def migrate(env, version): - openupgrade.rename_columns(env.cr, _column_renames) diff --git a/iot_output_oca/views/iot_device_output_views.xml b/iot_output_oca/views/iot_device_output_views.xml index 64799937..05aea9e9 100644 --- a/iot_output_oca/views/iot_device_output_views.xml +++ b/iot_output_oca/views/iot_device_output_views.xml @@ -53,7 +53,7 @@ name="run" type="object" string="Run" - attrs="{'invisible': [('status', '=', 'ok')]}" + invisible="status == 'ok'" /> diff --git a/iot_output_oca/views/iot_device_views.xml b/iot_output_oca/views/iot_device_views.xml index 449af56c..31841ca4 100644 --- a/iot_output_oca/views/iot_device_views.xml +++ b/iot_output_oca/views/iot_device_views.xml @@ -20,8 +20,8 @@ {'invisible': [('communication_system_id', '=', False)]} + name="invisible" + >not communication_system_id