summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2020-07-10 16:57:35 +0000
committerAaron Bohy <aab@odoo.com>2020-07-16 09:19:46 +0000
commit11857adec059164e11cb0ed73a74a7337152bbe1 (patch)
tree46162ca143a737feccb01e8882a5a867c6f60419 /addons/web/static/src/js/fields/basic_fields.js
parent12cc5fd0ccd7ae2981d07a59d5ccc6451b3d0d52 (diff)
[IMP] web,barcodes: speed up form view rendering
Large form views (containing a lot of fields), e.g. the crm.lead form view, take a while to render (~ 250 ms). Most form views contain several (sometimes a lot) invisible fields (invisible="1"), whose only purpose in the view is to be fetched, so that they can be used to evalute domains and contexts. This commit implements a trivial optimization of the form renderer, which consists in skipping the rendering of those invisible fields. With this change, we gain ~25% of rendering time on the crm.lead form view. closes odoo/odoo#54368 Related: odoo/enterprise#11875 Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions