[FIX]hr_pms_property: fix version manifest and delete migration file

This commit is contained in:
irlui
2024-10-15 13:57:43 +02:00
parent 7f3d7e0555
commit 2b54acb78d
3 changed files with 3 additions and 27 deletions

View File

@@ -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",

View File

@@ -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
""",
)

View File

@@ -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