Skip to content

[18.0][OU-IMP] point_of_sale: Set the access_token value in pos.config to prevent all records from having the same value#5626

Merged
pedrobaeza merged 1 commit into
OCA:18.0from
Tecnativa:18.0-ou-imp-point_of_sale-config-access_token
May 14, 2026
Merged

[18.0][OU-IMP] point_of_sale: Set the access_token value in pos.config to prevent all records from having the same value#5626
pedrobaeza merged 1 commit into
OCA:18.0from
Tecnativa:18.0-ou-imp-point_of_sale-config-access_token

Conversation

@victoralmau

Copy link
Copy Markdown
Member

Set the access_token value in pos.config to prevent all records from having the same value

Please @pedrobaeza can you review it?

@Tecnativa TT62316

@OCA-git-bot OCA-git-bot added mod:openupgrade_scripts Module openupgrade_scripts series:18.0 labels May 13, 2026
@pedrobaeza pedrobaeza added this to the 18.0 milestone May 13, 2026
Comment thread openupgrade_scripts/scripts/point_of_sale/18.0.1.0.2/pre-migration.py Outdated
@pedrobaeza

Copy link
Copy Markdown
Member
from uuid import uuid4

for config in env["pos.config"].search([]):
    config.access_token = uuid4().hex[:16]

…revent all records from having the same value

TT62316
@victoralmau victoralmau force-pushed the 18.0-ou-imp-point_of_sale-config-access_token branch from 25ef01e to 4bb0fa2 Compare May 14, 2026 06:37
@victoralmau victoralmau requested a review from pedrobaeza May 14, 2026 06:38
@pedrobaeza pedrobaeza merged commit fcfe9d2 into OCA:18.0 May 14, 2026
4 checks passed
@pedrobaeza pedrobaeza deleted the 18.0-ou-imp-point_of_sale-config-access_token branch May 14, 2026 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:openupgrade_scripts Module openupgrade_scripts series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants