Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][FIX] fix odoobot_state field not find in parent view #3545

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions openupgrade_scripts/scripts/hr/14.0.1.1/pre-migrate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright 2022 Marcin Żurawski
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
openupgrade.logged_query(
env.cr,
"""
DELETE FROM ir_ui_view
WHERE inherit_id=(
SELECT res_id
FROM ir_model_data
WHERE name='res_users_view_form_profile' AND module='hr'
);
"""
)
openupgrade.logged_query(
env.cr,
"""
DELETE FROM ir_ui_view
WHERE id=(
SELECT res_id
FROM ir_model_data
WHERE name='res_users_view_form_profile' AND module='hr'
);
"""
)