summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/thread_cache/thread_cache.js
diff options
context:
space:
mode:
authorVictor Feyens <vfe@odoo.com>2020-06-15 11:32:25 +0000
committerVictor Feyens <vfe@odoo.com>2020-08-03 07:23:29 +0000
commit9004e90ab0b65398bc0a5302690a188ad2372996 (patch)
tree3fc4c3d75d61e18cc53000f8e9345a6901d29a04 /addons/mail/static/src/models/thread_cache/thread_cache.js
parent34fb9f315958b9cbf1e580d376f5a91fad793e95 (diff)
[IMP] portal: template performance
Avoid calling thrice the same function during the rendering of the template. `can_edit_vat()` checks whether partner has invoices or sales orders to avoid VAT modifications, but this check should only be done once by rendering. Gain of up to 8 queries (if sale & account installed). X-original-commit: 3860749074608068efdba940ccb983d89516cf8d
Diffstat (limited to 'addons/mail/static/src/models/thread_cache/thread_cache.js')
0 files changed, 0 insertions, 0 deletions