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

[FIX] fix columns filter in delete_record_translations() for versions >= 16 #342

Merged
merged 1 commit into from
Aug 28, 2023
Merged
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
4 changes: 1 addition & 3 deletions openupgradelib/openupgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -2692,9 +2692,7 @@ def delete_record_translations(cr, module, xml_ids, field_list=None):
)
cr.execute(query, (record_id,))
checks = cr.fetchall()[0]
for i, (column, check) in enumerate(zip(list_columns, checks)):
if not check:
list_columns.pop(i)
list_columns = [c for c, check in zip(list_columns, checks) if check]
if not list_columns:
continue
columns = ", ".join(list_columns)
Expand Down
Loading