summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2020-06-17 11:42:33 +0000
committerXavier Morel <xmo@odoo.com>2020-06-17 12:10:45 +0000
commit28568920779482982896ce8bc7eb914ab2901873 (patch)
tree1203d1b1e84f1157b08249dd7444e5211bccea29 /addons/web/static/src/js/views/basic/basic_controller.js
parent0d6bb14cfda0030936311b41c4313e00afe1034b (diff)
[IMP] base: cleanup action handlers a bit
* code *must* have an eval_context, `None` would blow up as soon as it looks for the `'action'` key * [accidentally quadratic] eval_value returns a value per line, seems silly to evaluate all lines for each line when we can evaluate all of them once, then map results to field names * eval_value doesn't break inside the loop, so every id gets a value by construction, `dict.fromkeys` is completely unnecessary (and provides no performance benefits) closes odoo/odoo#53110 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions