summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework
diff options
context:
space:
mode:
authorJoren Van Onder <jov@odoo.com>2016-02-26 13:25:39 +0100
committerJoren Van Onder <jov@odoo.com>2016-02-29 09:57:39 +0100
commitfeedb0f1f4148daaf05efeae0738f59a78f635a1 (patch)
treef059fa33de4a2d29609cff293154f7542b0cd2da /addons/web/static/src/js/framework
parent9f073102ef73acfaab2d9bcdd2e7706af2f0aab0 (diff)
[FIX] point_of_sale: get the correct logo when using multiple databases
In an environment where multiple database are available the company_logo controller in the web module will return a placeholder logo (the Odoo logo) if it can't figure out what db the request belongs to. This logo is used on the ESC/POS receipts. Because we load the logo with an anonymous CORS request there is no authentication on the request. This is necessary because the POS tends to not be served over HTTPS whereas the rest of Odoo is. Without this crossOrigin attribute we could potentially end up in a situation where the canvas is considered tainted by the browser which would prevent us from extracting the canvas' data with toDataURL(). So removing the crossOrigin attribute is not an option, specifying the db is the next best thing. opw-670471 note: in >=9.0 session is a variable defined in the js module instead of a property on PosModel, so 'self.session.db' should become 'session.db'.
Diffstat (limited to 'addons/web/static/src/js/framework')
0 files changed, 0 insertions, 0 deletions