From 2b54acb78d6fe40c933d3930608f20c367cdaf83 Mon Sep 17 00:00:00 2001 From: irlui Date: Tue, 15 Oct 2024 13:57:43 +0200 Subject: [PATCH] [FIX]hr_pms_property: fix version manifest and delete migration file --- pms_hr_property/__manifest__.py | 2 +- .../migrations/14.0.2.0.0/pre_migration.py | 24 ------------------- pms_hr_property/models/hr_employee.py | 4 ++-- 3 files changed, 3 insertions(+), 27 deletions(-) delete mode 100644 pms_hr_property/migrations/14.0.2.0.0/pre_migration.py diff --git a/pms_hr_property/__manifest__.py b/pms_hr_property/__manifest__.py index 8ae1f1c90..842831c9a 100644 --- a/pms_hr_property/__manifest__.py +++ b/pms_hr_property/__manifest__.py @@ -5,7 +5,7 @@ "name": "PMS Hr Property", "summary": """ Adds to the employee the property on which he works.""", - "version": "14.0.2.0.0", + "version": "14.0.1.0.0", "license": "AGPL-3", "author": "OsoTranquilo,Odoo Community Association (OCA)", "website": "https://github.com/OCA/pms", diff --git a/pms_hr_property/migrations/14.0.2.0.0/pre_migration.py b/pms_hr_property/migrations/14.0.2.0.0/pre_migration.py deleted file mode 100644 index 778b291cd..000000000 --- a/pms_hr_property/migrations/14.0.2.0.0/pre_migration.py +++ /dev/null @@ -1,24 +0,0 @@ -from openupgradelib import openupgrade - - -@openupgrade.migrate() -def migrate(env, version): - openupgrade.logged_query( - env.cr, - """ - UPDATE pms_ rl - SET sale_channel_id = r.sale_channel_origin_id - FROM pms_reservation r - WHERE r.id = rl.reservation_id - """, - ) - - openupgrade.logged_query( - env.cr, - """ - UPDATE pms_service ser - SET sale_channel_origin_id = fol.sale_channel_origin_id - FROM pms_folio fol - WHERE fol.id = ser.folio_id - """, - ) diff --git a/pms_hr_property/models/hr_employee.py b/pms_hr_property/models/hr_employee.py index af758277a..20c000685 100644 --- a/pms_hr_property/models/hr_employee.py +++ b/pms_hr_property/models/hr_employee.py @@ -1,7 +1,7 @@ # Copyright 2023 OsoTranquilo +# Copyright 2024 Irlui Ramírez +# From Consultores Hoteleros Integrales (ALDA Hotels) - 2024 # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). - - from odoo import fields, models