0

我目前正在使用 Odoo 12.0+e-20181025。我已更改电子邮件的标志,但收到上一封电子邮件的 GMail 拒绝显示新标志,尽管电子邮件中的图像链接已指向新标志。

我检查了图像,它是正确的图像。我还尝试按照电子邮件中显示上一个(错误)图像的 URL 进行操作,它导致了正确的图像,只是没有在电子邮件显示中显示。

我读过它与Gmail图像缓存功能有关,但由于我的大多数用户都在使用Gmail,我需要让它不会缓存图像,我目前的想法是添加no -cache 在标题 HTML 中,但我不知道在我当前版本的 Odoo 中可以在哪里设置它。

感谢您的阅读和帮助。

4

1 回答 1

0

好的,我找到了答案。它在视图中 > mail_notification_light

这是 XML 中的前几行代码

<?xml version="1.0"?>
<t t-name="mail.mail_notification_light">
<table border="0" cellpadding="0" cellspacing="0" style="padding-top: 16px; background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;"><tr><td align="center">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="padding: 24px; background-color: white; color: #454748; border-collapse:separate;">

然后变成了这些。

<?xml version="1.0"?>
<t t-name="mail.mail_notification_light">
<meta http-equiv="Cache-control" content="no-cache" />
<table border="0" cellpadding="0" cellspacing="0" style="padding-top: 16px; background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;"><tr><td align="center">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="padding: 24px; background-color: white; color: #454748; border-collapse:separate;">

所以我把它放在那里。到目前为止,它的效果很好。再次感谢所有阅读并发表评论的人。

于 2019-10-16T09:16:37.707 回答