[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:
parent
34e8246a54
commit
13bd2eaa3e
|
@ -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;
|
||||
},
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue