diff --git a/openupgrade_scripts/scripts/point_of_sale/16.0.1.0.1/pre-migration.py b/openupgrade_scripts/scripts/point_of_sale/16.0.1.0.1/pre-migration.py index b3028c2e1bd9..1f9a9ed3cf18 100644 --- a/openupgrade_scripts/scripts/point_of_sale/16.0.1.0.1/pre-migration.py +++ b/openupgrade_scripts/scripts/point_of_sale/16.0.1.0.1/pre-migration.py @@ -10,10 +10,10 @@ def _assign_pos_order_token(env): env, [("access_token", "pos.order", "pos_order", "char", False, "point_of_sale")], ) - env.cr.execute("SELECT id FROM survey_survey") + env.cr.execute("SELECT id FROM pos_order") for row in env.cr.fetchall(): env.cr.execute( - "UPDATE survey_survey SET access_token = %s WHERE id = %s", + "UPDATE pos_order SET access_token = %s WHERE id = %s", (str(uuid.uuid4()), row[0]), )