summaryrefslogtreecommitdiff
path: root/addons/board/static
diff options
context:
space:
mode:
authorJulien Castiaux <juc@odoo.com>2019-04-18 07:24:06 +0000
committerJulien Castiaux <juc@odoo.com>2019-05-02 07:30:02 +0000
commit4ae4aed2546419e430c1e59a048084686ec03941 (patch)
tree842964a5b6ba09e51535f9b0ea5dc0a2fdd36fdd /addons/board/static
parente373f55d4919633b63af1362c2d918c17a74d998 (diff)
[FIX] web: load binary data in separate http req
The `read` done by `_fetchRecord` in `basic_model.js` expicitly set a `bin_size: true` in the context. That context option tells the backend to send the size of the binary payload instead of the payload itself thus slim the response size. Frontend widgets are then responsible to fetch the actual payload in a separated http req. The `search_read` done by `_searchReadUngroupedList` didn't set the context option thus all the binary fields were sent b64 encoded along with the `search_read` response. opw-1963842 closes odoo/odoo#33014 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/board/static')
-rw-r--r--addons/board/static/tests/dashboard_tests.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/board/static/tests/dashboard_tests.js b/addons/board/static/tests/dashboard_tests.js
index ebd8bcdcc5a..db4e76a0749 100644
--- a/addons/board/static/tests/dashboard_tests.js
+++ b/addons/board/static/tests/dashboard_tests.js
@@ -854,7 +854,7 @@ QUnit.test("Views should be loaded in the user's language", async function (asse
'The views should be loaded with the correct context');
}
if (route === "/web/dataset/search_read") {
- assert.deepEqual(args.context, {lang: 'fr_FR'},
+ assert.equal(args.context.lang, 'fr_FR',
'The data should be loaded with the correct context');
}
if (route === '/web/action/load') {