diff options
| author | Joren Van Onder <jov@odoo.com> | 2016-02-26 13:25:39 +0100 |
|---|---|---|
| committer | Joren Van Onder <jov@odoo.com> | 2016-02-29 09:57:39 +0100 |
| commit | feedb0f1f4148daaf05efeae0738f59a78f635a1 (patch) | |
| tree | f059fa33de4a2d29609cff293154f7542b0cd2da /addons/web_editor/static/src/js/transcoder.js | |
| parent | 9f073102ef73acfaab2d9bcdd2e7706af2f0aab0 (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_editor/static/src/js/transcoder.js')
0 files changed, 0 insertions, 0 deletions
