[FIX] point_of_sale: prevent the company logo from being cached by the browser by accessing it via a random URL

This commit is contained in:
Frederic van der Essen 2014-09-10 13:52:04 +02:00
parent 34e8246a54
commit 13bd2eaa3e
2 changed files with 2 additions and 2 deletions

View File

@ -330,7 +330,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal
self.company_logo.onerror = function(){
logo_loaded.reject();
};
self.company_logo.src = window.location.origin + '/web/binary/company_logo';
self.company_logo.src = window.location.origin + '/web/binary/company_logo' +'?_'+Math.random();
return logo_loaded;
},

View File

@ -1177,7 +1177,7 @@ class Binary(http.Controller):
'/logo',
'/logo.png',
], type='http', auth="none")
def company_logo(self, dbname=None):
def company_logo(self, dbname=None, **kw):
# TODO add etag, refactor to use /image code for etag
uid = None
if request.session.db: