diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2018-05-16 14:28:49 +0200 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2018-05-17 09:17:21 +0200 |
| commit | 507b5cce3ae848d4b22b401f45d346f66e8fc45d (patch) | |
| tree | d92bb358abde22de0c68ba67e2378b32727aaf5e /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 65a589eb54a1421baa71074701bea2873a83c75f (diff) | |
[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 e14ab697727d87773dbefba11453b9edca79fc68
- In v11.0 the commit f5f60599bfd49df5904f971b0f1bbb37a96ccdbe introduced full usage of Backbone's set and get
which meant that self.cashier was no longer relevant
- In v10.0 the commit 475027b9889c0701f8fe5e0373a40663f6a831e1
(For v11.0: a9caef0ebbc7f3288e06f352f5bb817861e9689c)
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
closes #24762
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
