[IMP] web: alternative routes for company logo
authorChristophe Simonis <chs@openerp.com>
Thu, 30 Jan 2014 18:08:27 +0000 (19:08 +0100)
committerChristophe Simonis <chs@openerp.com>
Thu, 30 Jan 2014 18:08:27 +0000 (19:08 +0100)
bzr revid: chs@openerp.com-20140130180827-xior7wc6shtamcgu

addons/web/controllers/main.py

index 6e7a7fc..ef64c5e 100644 (file)
@@ -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