Skip to content

Commit

Permalink
fixup! [ADD] website_event_attendee_fields_custom: временный модуль д…
Browse files Browse the repository at this point in the history
…ля миграции данных
  • Loading branch information
em230418 committed Nov 27, 2024
1 parent b78d174 commit 11b8c1c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
def migrate(cr, installed_version):
from odoo import SUPERUSER_ID, api

env = api.Environment(cr, SUPERUSER_ID, {})
env = api.Environment(cr, SUPERUSER_ID, {"lang": None})
q_ref = {}

cr.execute(
Expand All @@ -15,7 +15,7 @@ def migrate(cr, installed_version):
af_id = row[0]
field_id = row[1]
field_name = row[2]
q_title = row[3]
q_title = env["ir.model.fields"].browse(field_id).field_description

cr.execute(
"UPDATE ir_model_fields SET attendee_field = TRUE WHERE id = %s", [field_id]
Expand Down

0 comments on commit 11b8c1c

Please sign in to comment.