Skip to Content
Menu
This question has been flagged
2 Replies
9599 Zobrazenia

Hi Guys,

i thought it's simple question however i cannot manage to find it.

So, is it possible and how to remove header and footer from odoo10 email template? it's not showing on preview but user get it surrounded.


unfortunately cannot attach screenshot here, but hope it's clear enough.  

Avatar
Zrušiť
Autor Best Answer

thanks but there is no header/footer in template code, i already checked that. i guess email subsystem adds this later during sending.

Avatar
Zrušiť

Check the template "Notification Email" is default email template in which header odoo logo and footer sent by odoo available.

Autor

hi Prakash, i also already did that - i did'nt see header and footer there.

here is Notification Email code:

<div>

% if ctx.get('has_button_access'):

<div itemscope="" itemtype="http://schema.org/EmailMessage">

<div itemprop="potentialAction" itemscope="" itemtype="http://schema.org/ViewAction">

<link itemprop="target" href="${ctx['button_access']['url']}">

<link itemprop="url" href="${ctx['button_access']['url']}">

<meta itemprop="name" content="View ${ctx['model_name']}">

</div>

</div>

% endif

% if not ctx['is_discussion'] or not len(ctx['actions']) == 0 or ctx.get('has_button_access'):

<div summary="o_mail_notification" style="padding: 0px; width:600px;">

<table cellspacing="0" cellpadding="0" border="0" style="width: 600px; margin-top: 5px;">

<tbody><tr>

<td valign="center">

% if ctx.get('has_button_access'):

<a href="${ctx['button_access']['url']}" style="padding: 8px 12px; font-size: 12px; color: #FFFFFF; text-decoration: none !important; font-weight: 400; background-color: #875A7B; border: 0px solid #875A7B; border-radius:3px">${ctx['button_access']['title']}</a>

% endif

% if ctx.get('has_button_follow'):

% if ctx.get('has_button_access'):

|

% endif

<a href="${ctx['button_follow']['url']}" style="color: #875A7B; text-decoration: none !important;">${ctx['button_follow']['title']}</a>

% elif ctx.get('has_button_unfollow'):

% if ctx.get('has_button_access'):

|

% endif

<a href="${ctx['button_unfollow']['url']}" style="color: #875A7B; text-decoration: none !important;">${ctx['button_unfollow']['title']}</a>

% endif

% if ctx.get('actions'):

% for action in ctx['actions']:

|

<a href="${action['url']}" style="color: #875A7B; !important;">${action['title']}</a>

% endfor

% endif

</td>

</tr>

<tr>

<td colspan="2" style="text-align:center;">

<hr width="100%" style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin:10px 0;">

% if ctx.get('subtype') and ctx.get('subtype').internal:

<span style="background-color: #f2dede; padding: 5px;">

<strong>Внутрішня примітка</strong>: відповіді не будуть надіслані підписникам.

</span>

% endif

</td>

</tr>

</tbody></table>

</div>

% endif

${object.body | safe}

% if ctx.get('tracking'):

<ul>

% for tracking in ctx['tracking']

<li>${tracking[0]} : ${tracking[1]} -&gt; ${tracking[2]}</li>

% endfor

</ul>

% endif

<br>

</div>

there is nothing which looks like header or footer

Let me know particular email template, which email template would like to remove header and footer. And what information is displaying is header and footer. Is related to odoo logo and odoo name.

Autor

Prakash, i installed this module but nothing changed, maybe some additional settings required?

Autor

Prakash, here is 2 templates - Notification Email and my custom. May i kindly ask you to take a look and advise what should i change to remove header and footer

https://drive.google.com/drive/folders/1gYuRCxv0KFDbaqCWyIqeyN2djlVwhhAh?usp=sharing

Autor

okay, i figured out root cause of problem.

we have to remove foorer/header in "Sale Order Notification Email" template, not in "Notification Email"

Best Answer

To remove header and footer, Activate debug mode, Settings select Email Template select particular record that you want to remove or change footer and code.  EDIT record, Email template form view record click  code view </> icon edit and remove header, footer related code or change. And save the record

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
dec 23
2052
2
máj 24
2489
2
máj 24
7629
3
feb 24
6832
0
apr 19
4531