[FIX] mail: button_access is undefined in mail template preview
opw-668409
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user