如何在odoo中创建新的供应商账单或客户发票时自动发送邮件 [英] How to send mail automatically while creating new vendor bill or customer invoice in odoo
问题描述
大家好,我有一个从 odoo 会计模块继承的自定义会计模块.我已经创建了一个预算,一个预算有一个人负责,以及一个与这个预算相关的分析账户.我想根据与特定预算相关的分析帐户创建供应商账单和客户发票,并且我想在创建新账单或发票时向负责预算的人的电子邮件中发送电子邮件通知消息,以通知他带有一条消息(新帐单已创建,您需要对其进行验证).
Hello everyone I have a custom accounting module inherits from odoo accounting module. I have created a budget and a budget has someone responsible for, and an analytic account related to this budget. I want to create vendor bills and customer invoices based on an analytic account related to the specific budget and I want to send an email notification message to the person responsible for the budget in his email when I create a new bill or invoice to notify him that with a message ( new bill has been created you need to validate it).
推荐答案
您可以使用自动化操作:
You can use automated actions:
配置外发电子邮件服务器.
Configure the outgoing email server.
将相关合作伙伴的电子邮件设置为创建发票的用户和负责人的电子邮件.
Set the email of the related partner to the user who creates the invoice and the same for the responsible.
安装 base_automation
模块.
创建将触发发票创建的自动操作:
转到技术/自动化/自动化操作
并创建新操作.
Create an automated action which will trigger the invoice creation:
Go to Technical / Automation / Automated Actions
and create new action.
例如:
- 姓名:
负责电子邮件
- 模型:
发票
- 待办事项:
发送电子邮件
- 电子邮件模板:
发票:发票电子邮件
- 触发条件:
创建时
您可以复制发票电子邮件
模板并将To (Partners)
更改为负责人.
You may duplicate the Invoice email
template and change the To (Partners)
to the responsible.
这篇关于如何在odoo中创建新的供应商账单或客户发票时自动发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!