From d97ee4b9fd7b02fd345218076291ea917a68ef50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Wed, 10 Jul 2024 16:20:45 +0200 Subject: [PATCH] [OU-IMP] resource_booking: Add noupdate_changes.xml TT50035 --- .../migrations/15.0.1.4.0/noupdate_changes.xml | 13 +++++++++++++ .../migrations/15.0.1.4.0/post-migration.py | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 resource_booking/migrations/15.0.1.4.0/noupdate_changes.xml diff --git a/resource_booking/migrations/15.0.1.4.0/noupdate_changes.xml b/resource_booking/migrations/15.0.1.4.0/noupdate_changes.xml new file mode 100644 index 00000000..605ee209 --- /dev/null +++ b/resource_booking/migrations/15.0.1.4.0/noupdate_changes.xml @@ -0,0 +1,13 @@ + + + + ['|', ('partner_ids', 'child_of', user.partner_id.ids), ('message_partner_ids', 'child_of', user.partner_id.ids)] + + + ['|', '|', ('partner_ids', 'child_of', user.partner_id.ids), ('message_partner_ids', 'child_of', user.partner_id.ids), ('combination_id.resource_ids.user_id', 'in', user.ids)] + + diff --git a/resource_booking/migrations/15.0.1.4.0/post-migration.py b/resource_booking/migrations/15.0.1.4.0/post-migration.py index 27678d64..2a2b8776 100644 --- a/resource_booking/migrations/15.0.1.4.0/post-migration.py +++ b/resource_booking/migrations/15.0.1.4.0/post-migration.py @@ -17,3 +17,6 @@ def convert_resource_booking_partners(env): def migrate(env, version): """Put partner_id in partner_ids""" convert_resource_booking_partners(env) + openupgrade.load_data( + env.cr, "resource_booking", "migrations/15.0.1.4.0/noupdate_changes.xml" + )