Skip to content
Snippets Groups Projects
Commit 54d1b388 authored by Lucas Perais (lpe)'s avatar Lucas Perais (lpe)
Browse files

[FIX] point_of_sale: repair cashier from localStorage on refresh page

open a pos,
change cashier
hit F5

Before this commit, the previous user was set as cashier, forgetting about the change we made
This was because of two things:
- The original fix to do just this use case was pushed in v9.0 as e14ab697
- In v10.0 the commit 475027b9
    (For v11.0: a9caef0e)
    Was intended to update the res.users objects at their loading to ensure that their access rights were loaded too
    But it did this using the wrong condition

After this commit, it reworks fine

OPW 1844006
related #24762

closes #24764
parent bcf20cfb
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment