mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-21 02:52:04 +02:00
19.0 vanilla
This commit is contained in:
parent
d1963a3c3a
commit
2d3ee4855a
7430 changed files with 2687981 additions and 2965473 deletions
|
|
@ -10,61 +10,82 @@
|
|||
<meta name="format-detection" content="telephone=no"/>
|
||||
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />
|
||||
|
||||
<style type="text/css">
|
||||
<t t-set="company_color" t-value="company.secondary_color or '#875a7b'"/>
|
||||
<t t-set="color_company" t-value="company.email_secondary_color or '#714B67'"/>
|
||||
/* Remove space around the email design. */
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
margin: 0 auto !important;
|
||||
padding: 0 !important;
|
||||
height: 100% !important;
|
||||
width: 100% !important;
|
||||
font-family: Arial, Helvetica, Verdana, sans-serif;
|
||||
}
|
||||
/* Prevent Windows 10 Mail from underlining links. Styles for underlined links should be inline. */
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
#header_background {
|
||||
background-color: <t t-out="company_color"/>;
|
||||
padding-top:20px;
|
||||
}
|
||||
#header {
|
||||
border-top: 1px solid #d8dadd;
|
||||
}
|
||||
.global_layout {
|
||||
max-width: 588px;
|
||||
width: 588px;
|
||||
margin: 0 auto;
|
||||
border: 1px solid #eeeeee;
|
||||
border-top: 0;
|
||||
background-color: #ffffff;
|
||||
border-left: 1px solid #d8dadd;
|
||||
border-right: 1px solid #d8dadd;
|
||||
}
|
||||
.company_name {
|
||||
display: inline;
|
||||
vertical-align: middle;
|
||||
color: #878d97;
|
||||
font-weight: bold;
|
||||
color: #8f8f8f;
|
||||
font-size: 24px;
|
||||
}
|
||||
.title_subtitle {
|
||||
font-weight: bold;
|
||||
color: #282f33;
|
||||
.header_title {
|
||||
color: #374151;
|
||||
font-size: 18px;
|
||||
word-break: break-all;
|
||||
}
|
||||
.button {
|
||||
float: right;
|
||||
background-color: <t t-out="company_color"/>;
|
||||
color: #ffffff;
|
||||
border-radius: 5px;
|
||||
.td_button {
|
||||
border-radius: 3px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.td_button_connect {
|
||||
background-color: <t t-out="color_company"/>;
|
||||
}
|
||||
#button_connect {
|
||||
text-align: center;
|
||||
color: #ffffff;
|
||||
font-size: 16px;
|
||||
}
|
||||
.date {
|
||||
color: #8f8f8f;
|
||||
#button_open_report {
|
||||
color: #007e84;
|
||||
font-size: 14px;
|
||||
}
|
||||
.header_date {
|
||||
color: #878d97;
|
||||
font-size: 14px;
|
||||
}
|
||||
.tip_title {
|
||||
margin-top: 0;
|
||||
font-weight: bold;
|
||||
font-size: 20px;
|
||||
}
|
||||
.tip_content {
|
||||
margin: 0 auto;
|
||||
color:#333333;
|
||||
color: #374151;
|
||||
text-align: justify;
|
||||
text-justify: inter-word;
|
||||
margin: 15px auto 0 auto;
|
||||
font-size: 16px;
|
||||
line-height: 25px;
|
||||
}
|
||||
.tip_button {
|
||||
background-color: <t t-out="company_color"/>;
|
||||
border-radius: 5px;
|
||||
margin: 14px 16px 14px 0px;
|
||||
background-color: <t t-out="color_company"/>;
|
||||
border-radius: 3px;
|
||||
padding: 10px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
|
@ -73,110 +94,85 @@
|
|||
}
|
||||
.illustration_border {
|
||||
width: 100%;
|
||||
border: 1px solid grey;
|
||||
border: 1px solid #d8dadd;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.kpi_row_footer {
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
.kpi_header {
|
||||
overflow: auto;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px solid #eeeeee;
|
||||
font-size: 15px;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
color: #282f33;
|
||||
}
|
||||
#button_open_report {
|
||||
padding: 5px 10px;
|
||||
font-size: 12px;
|
||||
font-weight: normal;
|
||||
color: #374151;
|
||||
}
|
||||
.kpi_cell {
|
||||
float: left;
|
||||
width: 33%;
|
||||
text-align: center;
|
||||
padding-top: 2px;
|
||||
}
|
||||
.kpi_cell_center {
|
||||
border-top: 2px solid <t t-out="company_color"/>;
|
||||
}
|
||||
.kpi_cell_border {
|
||||
border-top: 2px solid #00A09D;
|
||||
padding-top: 10px;
|
||||
padding: 0;
|
||||
}
|
||||
.kpi_value {
|
||||
color: #282f33;
|
||||
color: #374151;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
.kpi_center_col {
|
||||
color: <t t-out="company_color"/>;
|
||||
font-size: 28px;
|
||||
}
|
||||
.kpi_border_col {
|
||||
color: #00A09D;
|
||||
color: #374151;
|
||||
}
|
||||
.kpi_value_label {
|
||||
display: inline-block;
|
||||
margin-bottom: 10px;
|
||||
color: #888888;
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
color: #878d97;
|
||||
font-size: 14px;
|
||||
}
|
||||
.kpi_margin {
|
||||
width: 75px;
|
||||
padding: 5px 10px;
|
||||
text-decoration: none;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.positive_kpi_margin {
|
||||
border: 1px solid #c4ecd7;
|
||||
background-color: #d5f1e2;
|
||||
color: #17613a;
|
||||
}
|
||||
.negative_kpi_margin {
|
||||
border: 1px solid #f4cfce;
|
||||
background-color: #f7dddc;
|
||||
color: #712b29;
|
||||
}
|
||||
.kpi_trick {
|
||||
clear: both;
|
||||
.kpi_margin_margin {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.download_app {
|
||||
height: 40px;
|
||||
margin-bottom: 5px;
|
||||
display: inline-block;
|
||||
}
|
||||
.preference_div {
|
||||
clear: both;
|
||||
background-color: #eeeeee;
|
||||
text-align: center;
|
||||
}
|
||||
.preference {
|
||||
margin-bottom: 15px;
|
||||
color: #6b6d70;
|
||||
}
|
||||
.preference a {
|
||||
text-decoration: none;
|
||||
color: #374151;
|
||||
font-size: 14px;
|
||||
}
|
||||
.by_odoo {
|
||||
color: #8f8f8f;
|
||||
}
|
||||
.odoo_link {
|
||||
text-decoration: none;
|
||||
color: #878d97;
|
||||
font-size: 12px;
|
||||
}
|
||||
.odoo_link_text {
|
||||
font-weight: bold;
|
||||
color: <t t-out="company_color"/>;
|
||||
color: <t t-out="color_company"/>;
|
||||
}
|
||||
.run_business {
|
||||
color: #2d2a26;
|
||||
color: #374151;
|
||||
margin: 15px auto;
|
||||
font-size: 18px;
|
||||
}
|
||||
#footer {
|
||||
background-color: #eeeeee;
|
||||
color: #8f8f8f;
|
||||
background-color: #F9FAFB;
|
||||
color: #878d97;
|
||||
text-align: center;
|
||||
font-size: 20px;
|
||||
border: 1px solid #F9FAFB;
|
||||
border-top: 0;
|
||||
}
|
||||
#stock_tip {
|
||||
overflow: auto;
|
||||
margin-top: 20px;
|
||||
}
|
||||
#stock_div_img {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#stock_img {
|
||||
width: 70%;
|
||||
}
|
||||
@media only screen and (max-width: 650px) {
|
||||
.global_layout {
|
||||
width: 100% !important;
|
||||
}
|
||||
.d-block {
|
||||
display: block !important;
|
||||
}
|
||||
|
|
@ -185,22 +181,27 @@
|
|||
}
|
||||
#header {
|
||||
padding: 15px 20px;
|
||||
border: 1px solid #eeeeee;
|
||||
}
|
||||
.global_layout {
|
||||
padding: 20px;
|
||||
border: 1px solid #F9FAFB;
|
||||
}
|
||||
.company_name {
|
||||
font-size: 15px;
|
||||
}
|
||||
.title_subtitle {
|
||||
.header_title {
|
||||
margin: 5px auto;
|
||||
}
|
||||
#button_connect {
|
||||
padding: 4px 10px;
|
||||
.td_button_connect {
|
||||
padding: 0px 8px !important;
|
||||
height: 22px !important;
|
||||
font-size: 12px;
|
||||
}
|
||||
.date {
|
||||
.td_button_open_report {
|
||||
padding: 0px 10px !important;
|
||||
font-size: 12px;
|
||||
}
|
||||
#button_connect {
|
||||
font-size: 12px;
|
||||
}
|
||||
.header_date {
|
||||
margin-top: 10px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
|
@ -219,14 +220,11 @@
|
|||
font-size: 20px;
|
||||
}
|
||||
.kpi_margin {
|
||||
font-size: 10px;
|
||||
font-size: 10px !important;
|
||||
}
|
||||
.kpi_margin_margin {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.preference_div {
|
||||
padding: 15px;
|
||||
}
|
||||
.preference {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
|
@ -243,85 +241,24 @@
|
|||
#powered {
|
||||
margin-top: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 651px) {
|
||||
#header_background {
|
||||
padding-top: 70px;
|
||||
}
|
||||
#header {
|
||||
padding: 20px 30px 25px 30px;
|
||||
border-left: 1px solid <t t-out="company_color"/>;
|
||||
border-right: 1px solid <t t-out="company_color"/>;
|
||||
}
|
||||
.global_layout {
|
||||
padding: 25px 30px 30px 30px;
|
||||
}
|
||||
.company_name {
|
||||
font-size: 25px;
|
||||
}
|
||||
.title_subtitle {
|
||||
margin: 10px auto;
|
||||
}
|
||||
.button {
|
||||
padding: 5px 10px;
|
||||
}
|
||||
#button_connect {
|
||||
padding: 6px 10px;
|
||||
font-size: 15px;
|
||||
}
|
||||
.date {
|
||||
.tip_twocol {
|
||||
overflow: auto;
|
||||
margin-top: 15px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.tip_title {
|
||||
font-size: 20px;
|
||||
.tip_twocol_left {
|
||||
text-align: left;
|
||||
}
|
||||
.tip_content {
|
||||
margin: 15px auto 0 auto;
|
||||
font-size: 15px;
|
||||
line-height: 25px;
|
||||
.tip_twocol_img {
|
||||
width: 90%;
|
||||
}
|
||||
.illustration_border {
|
||||
margin-top: 20px;
|
||||
}
|
||||
.kpi_value {
|
||||
font-size: 30px;
|
||||
}
|
||||
.kpi_margin {
|
||||
font-size: 12px;
|
||||
}
|
||||
.kpi_margin_margin {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.preference_div {
|
||||
.global_td {
|
||||
padding: 20px;
|
||||
}
|
||||
.preference {
|
||||
font-size: 15px;
|
||||
}
|
||||
.by_odoo {
|
||||
font-size: 12px;
|
||||
}
|
||||
.run_business {
|
||||
margin: 15px auto;
|
||||
font-size: 18px;
|
||||
}
|
||||
#footer {
|
||||
font-size: 20px;
|
||||
}
|
||||
#stock_tip {
|
||||
overflow: auto;
|
||||
margin-top: 20px;
|
||||
}
|
||||
#stock_div_img {
|
||||
text-align: center;
|
||||
}
|
||||
#stock_img {
|
||||
width: 70%;
|
||||
.p0 {
|
||||
padding: 0 !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<t t-out="body"/>
|
||||
|
|
@ -331,117 +268,232 @@
|
|||
|
||||
<!-- DIGEST MAIN TEMPLATE -->
|
||||
<template id="digest_mail_main">
|
||||
<div id="header_background">
|
||||
<div class="global_layout" id="header">
|
||||
<div style="overflow: auto;">
|
||||
<p t-field="company.name" class="company_name" />
|
||||
<a t-att-href="top_button_url" target="_blank"><span t-esc="top_button_label" class="button" id="button_connect" /></a>
|
||||
</div>
|
||||
<div class="title_subtitle">
|
||||
<p t-esc="title" />
|
||||
<p t-if="sub_title" t-esc="sub_title" />
|
||||
</div>
|
||||
<div t-esc="formatted_date" class="date" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="background-color: #eeeeee;">
|
||||
<div t-foreach="tips" t-as="tip" t-out="tip" class="global_layout" />
|
||||
|
||||
<div t-if="kpi_data" class="global_layout" style="padding-bottom: 0;">
|
||||
<t t-set="kpi_color" t-value="'kpi_border_col'"/>
|
||||
<div t-foreach="kpi_data" t-as="kpi_info" class="kpi_row_footer">
|
||||
<div t-if="kpi_info.get('kpi_col1') or kpi_info.get('kpi_col2') or kpi_info.get('kpi_col3')" t-att-data-field="kpi_info['kpi_name']">
|
||||
<div class="kpi_header">
|
||||
<span t-esc="kpi_info['kpi_fullname']" style="vertical-align: middle;" />
|
||||
<a t-if="kpi_info['kpi_action']" t-att-href="'/web#action=%s' % kpi_info['kpi_action']"><span class="button" id="button_open_report">Open Report</span></a>
|
||||
</div>
|
||||
<div t-if="kpi_info.get('kpi_col1')" class="kpi_cell kpi_cell_border">
|
||||
<div t-call="digest.digest_tool_kpi" >
|
||||
<t t-set="kpi_value" t-value="kpi_info['kpi_col1']['value']"/>
|
||||
<t t-set="kpi_margin" t-value="kpi_info['kpi_col1'].get('margin')"/>
|
||||
<t t-set="kpi_subtitle" t-value="kpi_info['kpi_col1']['col_subtitle']"/>
|
||||
</div>
|
||||
</div>
|
||||
<div t-if="kpi_info.get('kpi_col2')" class="kpi_cell kpi_cell_center">
|
||||
<div t-call="digest.digest_tool_kpi">
|
||||
<t t-set="kpi_value" t-value="kpi_info['kpi_col2']['value']"/>
|
||||
<t t-set="kpi_margin" t-value="kpi_info['kpi_col2'].get('margin')"/>
|
||||
<t t-set="kpi_subtitle" t-value="kpi_info['kpi_col2']['col_subtitle']"/>
|
||||
</div>
|
||||
</div>
|
||||
<div t-if="kpi_info.get('kpi_col3')" class="kpi_cell kpi_cell_border">
|
||||
<div t-call="digest.digest_tool_kpi">
|
||||
<t t-set="kpi_value" t-value="kpi_info['kpi_col3']['value']"/>
|
||||
<t t-set="kpi_margin" t-value="kpi_info['kpi_col3'].get('margin')"/>
|
||||
<t t-set="kpi_subtitle" t-value="kpi_info['kpi_col3']['col_subtitle']"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="kpi_trick" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<t t-if="body" t-out="body"/>
|
||||
|
||||
<div>
|
||||
<div class="global_layout">
|
||||
<div class="preference_div">
|
||||
<div t-if="preferences" t-foreach="preferences" t-as="preference"
|
||||
class="preference">
|
||||
<t t-out="preference"/>
|
||||
</div>
|
||||
<div class="by_odoo">
|
||||
Sent by <a href="https://www.odoo.com" target="_blank" class="odoo_link"><span class="odoo_link_text">Odoo</span></a>
|
||||
<t t-if="unsubscribe_token">
|
||||
–
|
||||
<a t-attf-href="/digest/#{object.id}/unsubscribe?token=#{unsubscribe_token}&user_id=#{user.id}"
|
||||
target="_blank" style="text-decoration: none;">
|
||||
<span style="color: #8f8f8f;">Unsubscribe</span>
|
||||
</a>
|
||||
</t>
|
||||
<t t-elif="object and object._name == 'digest.digest'">
|
||||
–
|
||||
<a t-att-href="'/web#view_type=form&model=digest.digest&id=%s' % object.id"
|
||||
target="_blank" style="text-decoration: none;">
|
||||
<span style="color: #8f8f8f;">Unsubscribe</span>
|
||||
</a>
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div t-if="display_mobile_banner" t-call="digest.digest_section_mobile" />
|
||||
|
||||
<div class="global_layout" id="footer">
|
||||
<p style="font-weight: bold;" t-esc="company.name"/>
|
||||
<p class="by_odoo" id="powered">
|
||||
Powered by <a href="https://www.odoo.com" target="_blank" class="odoo_link"><span class="odoo_link_text">Odoo</span></a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<table cellspacing="0" cellpadding="0" style="width: 100%;background-color: #F9FAFB;" align="center">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td id="header_background" align="center">
|
||||
<table cellspacing="0" cellpadding="0" border="0" id="header" class="global_layout">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding: 20px 20px 5px 20px;" class="p0"><p t-field="company.name" class="company_name" /></td>
|
||||
<td align="right" style="padding: 20px 20px 5px 0px;" class="p0">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="td_button td_button_connect" style="height: 29px;padding: 3px 10px;">
|
||||
<a t-att-href="top_button_url" target="_blank">
|
||||
<span t-esc="top_button_label" class="button" id="button_connect" />
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-left: 20px" class="p0" colspan="2">
|
||||
<div class="header_title">
|
||||
<p t-esc="title"/>
|
||||
<p t-if="sub_title" t-esc="sub_title"/>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 10px 0px 20px 20px;" class="p0" colspan="2">
|
||||
<span t-esc="formatted_date" class="header_date"/>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;background-color: #F9FAFB;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table cellspacing="0" cellpadding="0" border="0" class="global_layout">
|
||||
<tbody>
|
||||
<tr t-if="tips" t-foreach="tips" t-as="tip">
|
||||
<td colspan="3" style="width: 100%;padding: 20px;border: 1px solid #F9FAFB;">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td t-out="tip"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr t-if="kpi_data">
|
||||
<td style="padding: 20px 20px 0px 20px;" class='global_td'>
|
||||
<table t-foreach="kpi_data" t-as="kpi_info" style="width: 100%;" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td style="padding-bottom: 20px;">
|
||||
<table t-if="kpi_info.get('kpi_col1') or kpi_info.get('kpi_col2') or kpi_info.get('kpi_col3')"
|
||||
t-att-data-field="kpi_info['kpi_name']" cellspacing="0" cellpadding="10" style="width: 100%;margin-bottom: 5px;">
|
||||
<tr class="kpi_header">
|
||||
<td colspan="2" style="padding: 0px 0px 5px 0px;">
|
||||
<span style="text-transform: uppercase;" t-esc="kpi_info['kpi_fullname']" />
|
||||
</td>
|
||||
<td t-if="kpi_info['kpi_action']" align="right" style="padding: 0px 0px 5px 0px;">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="td_button td_button_open_report" style="padding: 1px 5px;height: 24px;">
|
||||
<a t-att-href="'/odoo/action-%s' % kpi_info['kpi_action']">
|
||||
<span class="button" id="button_open_report">➔ Open Report</span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="vertical-align: top;">
|
||||
<td t-if="kpi_info.get('kpi_col1')" class="kpi_cell" style="padding-top: 10px; border-top: 1px solid #e6e6e6;">
|
||||
<div>
|
||||
<t t-call="digest.digest_tool_kpi"
|
||||
kpi_value="kpi_info['kpi_col1']['value']"
|
||||
kpi_margin="kpi_info['kpi_col1'].get('margin')"
|
||||
kpi_subtitle="kpi_info['kpi_col1']['col_subtitle']"/>
|
||||
</div>
|
||||
</td>
|
||||
<td t-if="kpi_info.get('kpi_col2')" class="kpi_cell" style="padding-top: 10px; border-top: 1px solid #e6e6e6;">
|
||||
<div>
|
||||
<t t-call="digest.digest_tool_kpi"
|
||||
kpi_value="kpi_info['kpi_col2']['value']"
|
||||
kpi_margin="kpi_info['kpi_col2'].get('margin')"
|
||||
kpi_subtitle="kpi_info['kpi_col2']['col_subtitle']"/>
|
||||
</div>
|
||||
</td>
|
||||
<td t-if="kpi_info.get('kpi_col3')" class="kpi_cell" style="padding-top: 10px; border-top: 1px solid #e6e6e6;">
|
||||
<div>
|
||||
<t t-call="digest.digest_tool_kpi"
|
||||
kpi_value="kpi_info['kpi_col3']['value']"
|
||||
kpi_margin="kpi_info['kpi_col3'].get('margin')"
|
||||
kpi_subtitle="kpi_info['kpi_col3']['col_subtitle']"/>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr t-if="body" >
|
||||
<td style="padding: 20px 20px 0px 20px;" class='global_td'><t t-out="body" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td style="padding: 20px; border-bottom: 1px solid #d8dadd;">
|
||||
<table border="0" width="100%">
|
||||
<tbody>
|
||||
<tr style="background-color: #F9FAFB;">
|
||||
<td align="center" colspan="3" valign="center" style="padding: 15px;">
|
||||
<div t-if="preferences" t-foreach="preferences" t-as="preference" class="preference">
|
||||
<t t-out="preference" />
|
||||
</div>
|
||||
<div class="by_odoo" style="margin-bottom: 15px;">
|
||||
Sent by <a href="https://www.odoo.com" target="_blank">
|
||||
<span class="odoo_link_text">Odoo</span></a>
|
||||
<t t-if="unsubscribe_token">
|
||||
–
|
||||
<a t-attf-href="/digest/#{object.id}/unsubscribe?token=#{unsubscribe_token}&user_id=#{user.id}" target="_blank"
|
||||
style="text-decoration: none;">
|
||||
<span style="color: #878d97;">Unsubscribe</span>
|
||||
</a>
|
||||
</t>
|
||||
<t t-elif="object and object._name == 'digest.digest'">
|
||||
–
|
||||
<a t-att-href="'/odoo/digest.digest/%s' % object.id" target="_blank"
|
||||
style="text-decoration: none;">
|
||||
<span style="color: #878d97;">Unsubscribe</span>
|
||||
</a>
|
||||
</t>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr t-if="display_mobile_banner">
|
||||
<t t-call="digest.digest_section_mobile"/>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td align="center" style="padding: 20px 0px 0px 0px;">
|
||||
<table align="center">
|
||||
<tbody>
|
||||
<tr>
|
||||
<div id="footer">
|
||||
<p style="font-weight: bold;" t-esc="company.name" />
|
||||
<p class="by_odoo" id="powered">
|
||||
Powered by <a href="https://www.odoo.com" target="_blank" class="odoo_link">
|
||||
<span class="odoo_link_text">Odoo</span></a>
|
||||
</p>
|
||||
</div>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</template>
|
||||
|
||||
|
||||
<!-- DIGEST PARTS -->
|
||||
|
||||
<!-- MOBILE BANNER -->
|
||||
<template id="digest_section_mobile">
|
||||
<div class="global_layout" style="overflow: auto;">
|
||||
<div style="width: 50%; float: left; text-align: right;">
|
||||
<img src="https://www.odoo.com/web/image/24717933/odoo-mobile.png" alt="Odoo Mobile" />
|
||||
</div>
|
||||
<div style="width: 50%; float: left;">
|
||||
<p class="run_business">Run your business from anywhere with <b>Odoo Mobile</b>.</p>
|
||||
<div>
|
||||
<a href="https://play.google.com/store/apps/details?id=com.odoo.mobile" target="_blank"><img class="download_app" src="https://download.odoocdn.com/digests/digest/static/src/img/google_play.png" /></a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://itunes.apple.com/us/app/odoo/id1272543640" target="_blank"><img class="download_app" src="https://download.odoocdn.com/digests/digest/static/src/img/app_store.png" /></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<td colspan="3" style="padding: 20px;width:100%; border-bottom: 1px solid #d8dadd;">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="right" style="width: 33%;">
|
||||
<img src="https://www.odoo.com/web/image/38874595-16ef5349/odoo-mobile.png" alt="Odoo Mobile" />
|
||||
</td>
|
||||
<td align="left" style="width: 66%;">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<p class="run_business">Run your business from anywhere with <b>Odoo Mobile</b>.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="https://play.google.com/store/apps/details?id=com.odoo.mobile"
|
||||
target="_blank">
|
||||
<img class="download_app" height="40" width="135"
|
||||
src="https://download.odoocdn.com/digests/digest/static/src/img/google_play.png" />
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="https://itunes.apple.com/us/app/odoo/id1272543640" target="_blank">
|
||||
<img class="download_app" height="40" width="135"
|
||||
src="https://download.odoocdn.com/digests/digest/static/src/img/app_store.png" />
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</template>
|
||||
|
||||
|
||||
|
|
@ -449,13 +501,19 @@
|
|||
|
||||
<!-- KPI DISPLAY -->
|
||||
<template id="digest_tool_kpi">
|
||||
<span t-esc="kpi_value" t-att-class="'kpi_value %s' % kpi_color " />
|
||||
<span t-esc="kpi_value" style="color: #374151;text-decoration: none;" class="kpi_value kpi_border_col" />
|
||||
<br/>
|
||||
<span t-esc="kpi_subtitle" class="kpi_value_label" />
|
||||
<div t-if="kpi_margin" class="kpi_margin_margin">
|
||||
<span t-if="kpi_margin > 0.0" class="kpi_margin positive_kpi_margin">▲ <t t-esc="'%.2f' % kpi_margin"/> %</span>
|
||||
<span t-elif="kpi_margin < 0.0" class="kpi_margin negative_kpi_margin">▼ <t t-esc="'%.2f' % kpi_margin"/> %</span>
|
||||
</div>
|
||||
<table t-if="kpi_margin" class="kpi_margin_margin" align="center" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td t-if="kpi_margin > 0.0" class="kpi_margin positive_kpi_margin" style="padding: 3px 10px;font-size: 12px;text-decoration: none;border-radius: 50px;border: 1px solid #c4ecd7;border-radius: 5px; background-color: #c4ecd7;color: #17613a;">
|
||||
⬆ <t t-esc="'%.2f' % kpi_margin" /> %
|
||||
</td>
|
||||
<td t-elif="kpi_margin < 0.0" class="kpi_margin negative_kpi_margin" style="padding: 3px 10px;font-size: 12px;text-decoration: none;border-radius: 50px;border: 1px solid #f4cfce;background-color: #f7dddc;color: #712b29;">
|
||||
⬇ <t t-esc="'%.2f' % kpi_margin" /> %
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</template>
|
||||
|
||||
</data>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,8 @@
|
|||
<field name="kpi_res_users_connected">True</field>
|
||||
<field name="kpi_mail_message_total">True</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
<data noupdate="0">
|
||||
<record id="digest_tip_digest_0" model="digest.tip">
|
||||
<field name="name">Tip: Speed up your workflow with shortcuts</field>
|
||||
<field name="sequence">800</field>
|
||||
|
|
@ -18,7 +19,7 @@
|
|||
<div>
|
||||
<p class="tip_title">Tip: Speed up your workflow with shortcuts</p>
|
||||
<p class="tip_content">Press ALT in any screen to highlight shortcuts for every button in the screen. It is useful to process multiple documents in batch.</p>
|
||||
<img src="https://download.odoocdn.com/digests/digest/static/src/img/alt-shortcuts.gif" class="illustration_border" />
|
||||
<img src="https://download.odoocdn.com/digests/digest/static/src/img/milk-alt-shortcuts.gif" width="540" class="illustration_border" />
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
|
|
@ -30,7 +31,7 @@
|
|||
<div>
|
||||
<p class="tip_title">Tip: Click on an avatar to chat with a user</p>
|
||||
<p class="tip_content">Have a question about a document? Click on the responsible user's picture to start a conversation. If his avatar has a green dot, he is online.</p>
|
||||
<img src="https://download.odoocdn.com/digests/digest/static/src/img/avatar.gif" class="illustration_border" />
|
||||
<img src="https://download.odoocdn.com/digests/digest/static/src/img/milk-avatar.gif" width="540" class="illustration_border" />
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
|
|
@ -42,7 +43,7 @@
|
|||
<div>
|
||||
<p class="tip_title">Tip: A calculator in Odoo</p>
|
||||
<p class="tip_content">When editing a number, you can use formulae by typing the `=` character. This is useful when computing a margin or a discount on a quotation, sale order or invoice.</p>
|
||||
<img src="https://download.odoocdn.com/digests/digest/static/src/img/calculator.gif" class="illustration_border" />
|
||||
<img src="https://download.odoocdn.com/digests/digest/static/src/img/milk-calculator.gif" width="540" class="illustration_border" />
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
|
|
@ -54,7 +55,7 @@
|
|||
<div>
|
||||
<p class="tip_title">Tip: How to ping users in internal notes?</p>
|
||||
<p class="tip_content">Type "@" to notify someone in a message, or "#" to link to a channel. Try to notify @OdooBot to test the feature.</p>
|
||||
<img src="https://download.odoocdn.com/digests/digest/static/src/img/notifications.gif" class="illustration_border" />
|
||||
<img src="https://download.odoocdn.com/digests/digest/static/src/img/milk-notifications.png" width="540" class="illustration_border" />
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
|
|
@ -67,7 +68,31 @@
|
|||
<p class="tip_title">Tip: Knowledge is power</p>
|
||||
<p class="tip_content">When following documents, use the pencil icon to fine-tune the information you want to receive.
|
||||
Follow a project / sales team to keep track of this project's tasks / this team's opportunities.</p>
|
||||
<img src="https://download.odoocdn.com/digests/digest/static/src/img/following.png" class="illustration_border" />
|
||||
<img src="https://download.odoocdn.com/digests/digest/static/src/img/milk-following.png" width="540" class="illustration_border" />
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
<record id="digest_tip_digest_5" model="digest.tip">
|
||||
<field name="name">Tip: Join the Dark Side</field>
|
||||
<field name="sequence">3300</field>
|
||||
<field name="group_id" ref="base.group_user"/>
|
||||
<field name="tip_description" type="html">
|
||||
<div>
|
||||
<p class="tip_title">Tip: Join the Dark Side</p>
|
||||
<p class="tip_content">Feeling eye strain? Give your eyes a break by switching to Dark Mode.</p>
|
||||
<img src="https://download.odoocdn.com/digests/digest/static/src/img/18-web-dark-theme.gif" width="540" class="illustration_border"/>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
<record id="digest_tip_digest_6" model="digest.tip">
|
||||
<field name="name">Tip: Personalize your Home Menu</field>
|
||||
<field name="sequence">3800</field>
|
||||
<field name="group_id" ref="base.group_user"/>
|
||||
<field name="tip_description" type="html">
|
||||
<div>
|
||||
<p class="tip_title">Tip: Personalize your Home Menu</p>
|
||||
<p class="tip_content">Click and hold on a Menu Item to reorder your Apps to your liking.</p>
|
||||
<img src="https://download.odoocdn.com/digests/digest/static/src/img/18-web-app-order.gif" width="540" class="illustration_border"/>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
<field name="user_id" ref="base.user_root"/>
|
||||
<field name="interval_number">1</field>
|
||||
<field name="interval_type">days</field>
|
||||
<field name="numbercall">-1</field>
|
||||
<field name="nextcall" eval="(DateTime.now() + timedelta(hours=2)).strftime('%Y-%m-%d %H:%M:%S')"/>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue