email - 用于发送产品的 Odoo 电子邮件模板
问题描述
我需要创建一个电子邮件模板以在邮件正文中而不是从 pdf 中发送产品的 SKU。
或者有谁知道我如何从pdf中提取模板,如果可能的话?
这是默认模板
Dear % if object.partner_id.parent_id: ${object.partner_id.name} (${object.partner_id.parent_id.name}), % else: ${object.partner_id.name}, % endif
Here is your % if object.name: invoice $ {object.name}% else: invoice% endif% if object.invoice_origin: (with reference: $ {object.invoice_origin})% endif for the amount of $ {format_amount (object .amount_total, object.currency_id)} from $ {object.company_id.name}. % if object.payment_state == 'paid': This invoice is already paid. % else: Please forward the payment at your earliest convenience. % if object.payment_reference:
解决方案
推荐阅读
- python - 有没有一种好方法可以在 Python 中替换 openpyxl 的类中的值?
- ios - 通过情节提要参考使用转场时,您可以保留导航控制器吗?
- amazon-web-services - 无法从同一 VPC 内但在不同子网和不同 AZ 中的公共 ec2 实例 ping 私有 ec2 实例
- .net - 我的 exe 显示对 mscoree.dll 的依赖
- c# - 即使在安装 .NET core SDK 后,Dotnet 命令也不起作用
- javascript - 生成唯一的 id 对
- c# - RestClient 有效,但 HttpWebRequest 无效
- reactjs - Flutter 或 React Native - 更适合 Web 导出?
- javascript - 使用javascript ajax和django逐块上传大文件(如2gb),无需任何api调用
- javascript - 为什么我的 `lyrics` 变量在 async/await 函数之外返回一个空字符串