-
- Downloads
[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
Please register or sign in to comment