[IMP] web: alternative routes for company logo

bzr revid: chs@openerp.com-20140130180827-xior7wc6shtamcgu
This commit is contained in:
Christophe Simonis 2014-01-30 19:08:27 +01:00
parent 9c8a59b60b
commit ca844edcf8
1 changed files with 5 additions and 1 deletions

View 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