-
- Downloads
[MERGE][REF] mail, various: remove dead code and perform some small code renaming and optimization
Purpose of this merge is to clean a bit various methods and remove some dead code. All those commits come from other work-in-progress branches in mail aiming at improving performances and reducing code size. We can already merge some light cleaning in order to lessen diff and ease understanding of real feature-based branches. It contains * some renaming in notification methods to match the _notify prefix used in most of them; * removal of some dead code coming from old implementations of chatter; * removal of unnecessary context switch in email sending process; * small cleaning of notification group methods in various addons; It allows to gain some queries in various test_mail performance test as stated in the test_performance file update. When notification emails are sent 4 queries are gained with this merge. On the whole community runbot the impact is small (about 1K queries) probably because most of email sending part is skipped on runbot. This merge is related to the task Id 59039. #Closes #23089.
No related branches found
No related tags found
Showing
- addons/account/models/account_invoice.py 6 additions, 3 deletionsaddons/account/models/account_invoice.py
- addons/crm/models/crm_lead.py 5 additions, 5 deletionsaddons/crm/models/crm_lead.py
- addons/hr/models/res_users.py 0 additions, 26 deletionsaddons/hr/models/res_users.py
- addons/hr_holidays/models/hr_leave.py 4 additions, 4 deletionsaddons/hr_holidays/models/hr_leave.py
- addons/hr_holidays/models/hr_leave_allocation.py 4 additions, 4 deletionsaddons/hr_holidays/models/hr_leave_allocation.py
- addons/mail/controllers/bus.py 3 additions, 2 deletionsaddons/mail/controllers/bus.py
- addons/mail/controllers/main.py 1 addition, 1 deletionaddons/mail/controllers/main.py
- addons/mail/models/mail_channel.py 2 additions, 2 deletionsaddons/mail/models/mail_channel.py
- addons/mail/models/mail_mail.py 11 additions, 27 deletionsaddons/mail/models/mail_mail.py
- addons/mail/models/mail_thread.py 13 additions, 20 deletionsaddons/mail/models/mail_thread.py
- addons/mail/models/res_users.py 1 addition, 42 deletionsaddons/mail/models/res_users.py
- addons/mass_mailing/models/mail_mail.py 6 additions, 6 deletionsaddons/mass_mailing/models/mail_mail.py
- addons/portal/models/portal_mixin.py 3 additions, 3 deletionsaddons/portal/models/portal_mixin.py
- addons/project/models/project.py 14 additions, 26 deletionsaddons/project/models/project.py
- addons/sale/models/sale.py 6 additions, 3 deletionsaddons/sale/models/sale.py
- addons/test_mail/tests/test_performance.py 5 additions, 5 deletionsaddons/test_mail/tests/test_performance.py
- addons/website_blog/models/website_blog.py 6 additions, 4 deletionsaddons/website_blog/models/website_blog.py
- addons/website_forum/models/forum.py 6 additions, 4 deletionsaddons/website_forum/models/forum.py
- addons/website_mail_channel/models/mail_mail.py 2 additions, 2 deletionsaddons/website_mail_channel/models/mail_mail.py
- addons/website_slides/models/slides.py 3 additions, 3 deletionsaddons/website_slides/models/slides.py
Loading
Please register or sign in to comment