[FIX] mail: button_access is undefined in mail template preview

opw-668409
This commit is contained in:
Christophe Matthieu
2016-03-03 15:41:02 +01:00
parent 7952a57b45
commit 1320ad8cfe
+2
View File
@@ -62,8 +62,10 @@
<field name="body_html"><![CDATA[
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/ViewAction">
% if ctx.get('button_access'):
<link itemprop="target" href="${ctx['button_access']['url']}"/>
<link itemprop="url" href="${ctx['button_access']['url']}"/>
% endif
<meta itemprop="name" content="View ${ctx['model_name']}"/>
</div>
</div>