[IMP] pre-commit run -a

pull/1144/head
Jairo Llopis 2021-01-26 14:06:17 +00:00 committed by sonhd91
parent cbc4e8c51c
commit 5fe9c02807
2 changed files with 13 additions and 6 deletions

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="email_templates_list">
@ -17,7 +17,8 @@
<li>Copy the link</li>
<li>
Paste into the address bar and change the record ID (the last value in the URL).
<br />If you don't know the ID of the record, just browse to the record via odoo interface and check its ID in the address bar `#id=XXX`.
<br
/>If you don't know the ID of the record, just browse to the record via odoo interface and check its ID in the address bar `#id=XXX`.
</li>
<li>Load it</li>
</ol>
@ -31,10 +32,16 @@
<strong>XMLID:</strong> <span class="xid" t-esc="xid" /><br />
</t>
<strong>Link:</strong>
<a class="preview" t-attf-href="/email-preview/#{model}/#{xid or tmpl.id}/1">
<a
class="preview"
t-attf-href="/email-preview/#{model}/#{xid or tmpl.id}/1"
>
Preview
</a><br />
<a class="preview" t-attf-href="/web#id=#{tmpl.id}&amp;view_type=form&amp;model=mail.template">
<a
class="preview"
t-attf-href="/web#id=#{tmpl.id}&amp;view_type=form&amp;model=mail.template"
>
View in backend
</a>
</li>

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record model="ir.ui.view" id="email_template_preview_form">
<field name="model">email_template.preview</field>
@ -6,7 +6,7 @@
<field name="arch" type="xml">
<footer position="before">
<hr />
<label for="layout_preview_url"/>
<label for="layout_preview_url" />
<field name="layout_preview_url" widget="url" />
</footer>
</field>