diff options
| author | Jeremy Kersten <jke@odoo.com> | 2017-09-30 11:29:08 +0200 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2017-09-30 12:21:27 +0200 |
| commit | 830fed260121cf74ab09390a6056a3b4d14f0425 (patch) | |
| tree | 90b374cca4686d6980986a1f7bee67d15055ad20 /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | 88b75f150de28eb03dd364bffa1473cc808eef75 (diff) | |
[FIX] website_sale_wishlist: fix to make wishlist available for public user
Fix/imp about the #19777
Replace cron of garbage_collector by a call from autovaccum. Don't try to find
which session is expired or not to avoid to check each one by one, but use a
stupid heuristic to delete all old session older than 5 weeks by default.
(overridable in autovaccum: model.power_on(**dict(wishlist_week=10)) e.g.)
Use 'display: none' instead of class hidden, to avoid flickering at load and
let jquery work with .show / .hide without removeClass('hidden').
Without it, the animation of the first product that you add in your wishlist
will be wrong because Wishlist menu is not visible while you don't refresh.
Remove all old test that check if we was the public user or not and that make
the PR not working ;)
Courtesy of @yajo for dev, and @rdeodoo for quick review/testing
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
