summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2018-03-28 13:58:44 +0200
committerThibault Delavallée <tde@odoo.com>2018-03-28 16:55:08 +0200
commit1e4ee402a359c0b061439d95b27acc0d446db204 (patch)
treecc1b57d99b721f16a2bb6bc8f34df9d735206cc4 /addons/web/static/src/js/views/basic/basic_controller.js
parentd4dcfb6c6af389cf44606855072dfbc0cdb681db (diff)
[IMP] mail: use xmlid_to_res_id instead of ref to find subtype in message_format
Deleting comment / note / activity subtypes make the whole system quite impossible to use. Indeed the whole communication mechanism is based on those subtypes that are hardcoded. There are some use of env.ref() about subtypes to try to avoid having those removed. As there is some work to make some xml ids impossible to delete we can already update some code to use xmlid_to_res_id instead of env.ref(). This leads to some gain in query count as there is no exists() that is performed. Gain: 1 query on most tests implying post, because message_format is called by bus notification. About 1.5K queries on community runbot
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions