mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX]hr_pms_property: fix version manifest and delete migration file
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
""",
|
||||
)
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user