mirror of https://github.com/OCA/social.git
[IMP] pre-commit run -a
parent
2feb0bf181
commit
5b2ef9af7c
|
@ -1,9 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<template id="view_email_template_corporate_identity">
|
||||
<body>
|
||||
<html>
|
||||
<img style="float: right" t-attf-src="data:image;base64,{{env.user.company_id.logo}}" />
|
||||
<img
|
||||
style="float: right"
|
||||
t-attf-src="data:image;base64,{{env.user.company_id.logo}}"
|
||||
/>
|
||||
<!-- if some template calling us sets this variable,
|
||||
we print a h1 tag /-->
|
||||
<h1 t-if="email_heading"><t t-esc="email_heading" /></h1>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<record id="email_template_demo1" model="mail.template">
|
||||
<field name="name">QWeb demo</field>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<record id="email_template_form" model="ir.ui.view">
|
||||
<field name="model">mail.template</field>
|
||||
|
@ -9,12 +9,21 @@
|
|||
</field>
|
||||
<field name="body_html" position="before">
|
||||
<group attrs="{'invisible': [('body_type', '!=', 'qweb')]}">
|
||||
<field name="body_view_id" attrs="{'required': [('body_type', '=', 'qweb')]}" />
|
||||
<field name="body_view_arch" widget="ace" attrs="{'required': [('body_type', '=', 'qweb')], 'invisible': [('body_view_id', '=', False)]}" />
|
||||
<field
|
||||
name="body_view_id"
|
||||
attrs="{'required': [('body_type', '=', 'qweb')]}"
|
||||
/>
|
||||
<field
|
||||
name="body_view_arch"
|
||||
widget="ace"
|
||||
attrs="{'required': [('body_type', '=', 'qweb')], 'invisible': [('body_view_id', '=', False)]}"
|
||||
/>
|
||||
</group>
|
||||
</field>
|
||||
<field name="body_html" position="attributes">
|
||||
<attribute name="attrs">{'invisible': [('body_type', '!=', 'jinja2')]}</attribute>
|
||||
<attribute
|
||||
name="attrs"
|
||||
>{'invisible': [('body_type', '!=', 'jinja2')]}</attribute>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
|
Loading…
Reference in New Issue