From dea8b8a70af3e9b3cc29a5b472d2699b0ba8f212 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Fri, 26 Apr 2024 21:59:53 +0200 Subject: [PATCH] [OU-FIX] point_of_sale: Wrong table for access_token Copy/paste problem... --- .../scripts/point_of_sale/16.0.1.0.1/pre-migration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]), )