Odoo如何关闭后台邮件机制

Odoo如何关闭后台邮件机制,通过关闭后台的邮件机制来加快Odoo系统的运行呢?
Odoo对几乎所有单据都内嵌了邮件系统,虽然邮件系统有助于实时和准确掌握单据变化,不过也增加了系统的开销,最终影响了性能。
在单据量非常巨大,以至于影响系统稳定性和速度时,可考虑关闭此邮件机制。
通过在特定业务中,设置context参数,具体如下:

- ``mail_create_nosubscribe``: at create or message_post, do not subscribe uid to the record thread - ``mail_create_nolog``: at create, do not log the automatic ' created' message - ``mail_notrack``: at create and write, do not perform the value tracking creating messages - ``tracking_disable``: at create and write, perform no MailThread features (auto subscription, tracking, post, ...) - ``mail_save_message_last_post``: at message_post, update message_last_post datetime field - ``mail_auto_delete``: auto delete mail notifications; True by default (technical hack for templates) - ``mail_notify_force_send``: if less than 50 email notifications to send, send them directly instead of using the queue; True by default - ``mail_notify_user_signature``: add the current user signature in email notifications; True by default
通过设置context参数,就可以关闭Odoo的后台邮件机制,从而加快Odoo系统的运行。