From ca844edcf8741364caa3956de87cd55c9aa07c1c Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 30 Jan 2014 19:08:27 +0100 Subject: [PATCH] [IMP] web: alternative routes for company logo bzr revid: chs@openerp.com-20140130180827-xior7wc6shtamcgu --- addons/web/controllers/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 6e7a7fc6af8..ef64c5e7b6e 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -1437,7 +1437,11 @@ class Binary(http.Controller): args = {'error': "Something horrible happened"} return out % (simplejson.dumps(callback), simplejson.dumps(args)) - @http.route('/web/binary/company_logo', type='http', auth="none") + @http.route([ + '/web/binary/company_logo', + '/logo', + '/logo.png', + ], type='http', auth="none") def company_logo(self, dbname=None): # TODO add etag, refactor to use /image code for etag uid = None