[FIX] mail: no company printed in footer

In a multiple company account, when a parter is doesn't have a
company, the mails he revieved have "Send by using odoo" as footer.

This PR correct that by setting the footer to "Send using odoo" when
there is no company.

opw-1894825
This commit is contained in:
Julien (juc) Castiaux
2018-11-06 15:11:07 +00:00
parent cfca2bb0ff
commit de6a8cefd0
2 changed files with 7 additions and 2 deletions
+4 -1
View File
@@ -88,11 +88,14 @@
</ul>
<div t-if="signature" t-raw="signature" class="font-size: 13px;"/>
<p style="color: #555555; margin-top:32px;">
Sent by
Sent
<span t-if="company.name">
by
<a t-if="website_url" t-att-href="website_url" style="text-decoration:none; color: #875A7B;">
<span t-esc="company.name"/>
</a>
<span t-if="not website_url" t-esc="company.name"/>
</span>
using
<a target="_blank" href="https://www.odoo.com?utm_source=db&amp;utm_medium=email" style="text-decoration:none; color: #875A7B;">Odoo</a>.
</p>