如何在不使用cron作业的情况下自动运行python函数并在odoo14中发送电子邮件?
发布于 2022-03-17 09:18:33
您可以使用以下自动化:在应用程序设置中,通过在url中添加"?debug=1“切换到调试模式,重新加载页面,然后转到新的技术菜单-选项卡>自动化操作/服务器操作


或者使用Python代码:
#select an existing template:
template_id = env.ref('event.event_subscription').id
env['mail.template'].browse(template_id).sudo().send_mail(cur_registrations[0].id, force_send=True)关于这一专题的其他资源:
https://stackoverflow.com/questions/71501729
复制相似问题