콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
10109 화면

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.  

아바타
취소
작성자 베스트 답변

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

아바타
취소

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

작성자

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.

작성자

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

작성자

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

작성자

okay, i figured out root cause of problem.

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

베스트 답변

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

아바타
취소
관련 게시물 답글 화면 활동
1
12월 23
2407
2
5월 24
2997
2
5월 24
8046
3
2월 24
7241
0
4월 19
4882