Skip to content

Commit

Permalink
[OU-FIX] point_of_sale: Wrong table for access_token
Browse files Browse the repository at this point in the history
Copy/paste problem...
  • Loading branch information
pedrobaeza committed Apr 26, 2024
1 parent 765fef6 commit dea8b8a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]),
)

Expand Down

0 comments on commit dea8b8a

Please sign in to comment.