summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/abstract_controller.js
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2019-05-27 10:59:43 +0000
committerXavier Morel <xmo@odoo.com>2019-06-19 13:47:35 +0000
commit05746b7068827247fce84b8fa0f19b3f254d20d2 (patch)
tree0c1b460045f5d45573737fd0607ff2e02f053aab /addons/web/static/src/js/views/abstract_controller.js
parent411abff3880c8b3945e2f3afe963894a2380202d (diff)
[IMP] *: script-safe JSON serialisation
* add a json_scriptsafe module, which re-exports the stdlib's json but provides a script-safe `dumps` function, because of the way it works the script-safe version is fine / safe to use outside script contexts, so there's no need to provide different functions to qweb contexts * make the json.dumps in qweb contexts <script>-safe (should be rendered using t-raw) * update callsites to properly dump json: - dump in template, not in the python code - dump the entire structure at once, not bits and bobs inside a JSON literal Task 1999158 closes odoo/odoo#33682 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/abstract_controller.js')
0 files changed, 0 insertions, 0 deletions