diff --git a/web_last_viewed_records/static/src/js/main.js b/web_last_viewed_records/static/src/js/main.js index 59efd8d4..2da84b1b 100644 --- a/web_last_viewed_records/static/src/js/main.js +++ b/web_last_viewed_records/static/src/js/main.js @@ -1,4 +1,9 @@ openerp.web_last_viewed_records = function(instance){ + var localStorage = {}; + if (typeof window.localStorage !== "undefined"){ + localStorage = window.localStorage; + } + instance.web.ActionManager.include({ last_viewed_history_var: 'odoo_last_viewed', last_viewed_history_size: 8,