diff options
| author | Thibault Delavallée <tde@odoo.com> | 2018-03-29 10:25:44 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2018-03-29 10:53:00 +0200 |
| commit | e76d492636511684b9535b6fc6a02f4736188282 (patch) | |
| tree | de95a57b75017ad9d9b2d26138a7314e2fc822d9 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | d4dcfb6c6af389cf44606855072dfbc0cdb681db (diff) | |
| parent | 4451e505cd9505ddd862b4312daec26089e9c7d1 (diff) | |
[MERGE][IMP] mail: use xmlid_to_res_id instead of ref when accessing subtype ids
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.
Globally this merge allows to save a few query on each message post and about
7K on community runbot.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
