From a61ac2da69ba4f01736f848ff3e177b3c45d4321 Mon Sep 17 00:00:00 2001 From: Elisabeth Dickinson <edi@odoo.com> Date: Wed, 1 Apr 2020 14:00:44 +0000 Subject: [PATCH] [IMP] hr_recruitment, project, sale_expense: make tips bioutifoul MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PURPOSE Make digest email and tips more appealing. The goals of these tips are * to encourage the adoption of other apps (Did you know ?); * to make Odoo look more fun (Fun tips and tricks, young and dynamic style); * to show social proof and increase trust (emphasis on already existing projects / customers to); SPECIFICATIONS Improve existing tips to be more inlined with new digest styling. LINKS Task ID 2197417 PR odoo/odoo#51619 Co-Authored-By: Elisabeth Dickinson <edi@odoo.com> Co-Authored-By: Thibault Delavallée <tde@odoo.com> --- addons/hr_recruitment/data/digest_data.xml | 11 +++++------ addons/project/data/digest_data.xml | 15 +++++++-------- addons/sale_expense/data/digest_data.xml | 16 +++++++++------- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/addons/hr_recruitment/data/digest_data.xml b/addons/hr_recruitment/data/digest_data.xml index 57a1068522ee..61790aba91ca 100644 --- a/addons/hr_recruitment/data/digest_data.xml +++ b/addons/hr_recruitment/data/digest_data.xml @@ -8,16 +8,15 @@ <data> <record id="digest_tip_hr_recruitment_0" model="digest.tip"> - <field name="name">HR Recruitment: try mailgateway</field> + <field name="name">Recruitment: Create new applicants from incoming emails</field> <field name="sequence">4</field> <field name="group_id" ref="hr_recruitment.group_hr_recruitment_user"/> <field name="tip_description" type="html"> <div> - <strong style="font-size: 16px;">Try the mail gateway</strong> - <div style="font-size: 14px;">New applicants can be generated from incoming emails. You just need to set email aliases in configuration of job positions.<br/> - <div style="text-align:center;margin-top:5px;margin-bottom:2px;"> - <a href="/web#action=hr_recruitment.action_hr_job_config" style="background-color:#56b3b5;padding:2px;color:#FFFFFF;font-weight:bold;text-decoration:none;">Set Email Aliases</a> - </div> + <b class="font-16" style="font-size: 20px;line-height: 30px">Create new applicants from incoming emails</b> + <p class="font-12" style="color:#888888;font-size: 15px; line-height: 25px; margin-top: 0">You just need to set email aliases in your job positions' settings.</p> + <div style="text-align:center;margin-top:5px;margin-bottom:10px;"> + <a href="/web#action=hr_recruitment.action_hr_job_config" target="_blank" style="display:inline-block;background-color:#875a7b;line-height:40px;text-decoration: none;color: #ffffff;border-radius: 3px;font-size:13px;font-weight:bold;text-align:center; padding:0 10px;">Set Email Aliases</a> </div> </div> </field> diff --git a/addons/project/data/digest_data.xml b/addons/project/data/digest_data.xml index 43fe90dc9958..a5e6cfbc4275 100644 --- a/addons/project/data/digest_data.xml +++ b/addons/project/data/digest_data.xml @@ -8,17 +8,16 @@ <data> <record id="digest_tip_project_0" model="digest.tip"> - <field name="name">Project: try mailgateway</field> - <field name="sequence">6</field> + <field name="name">Project: Create tasks from incoming emails</field> + <field name="sequence">5</field> <field name="group_id" ref="project.group_project_manager"/> <field name="tip_description" type="html"> <div> - <strong style="font-size: 16px;">Try the mail gateway</strong> - <div style="font-size: 14px;"> - New tasks can be generated from incoming emails. You just need to set email aliases on your projects.<br/> - <div style="text-align:center;margin-top:5px;margin-bottom:2px;"> - <a href="/web#action=project.open_view_project_all_config" style="background-color:#56b3b5;padding:2px;color:#FFFFFF;font-weight:bold;text-decoration:none;">Set Email Aliases</a> - </div> + <b class="font-16" style="font-size: 20px;line-height: 30px">Create tasks from incoming emails</b> + <p class="font-12" style="color:#888888;font-size: 15px; line-height: 25px; margin: 0">You just need to set email aliases to your projects.</p> + <div style="text-align:center;margin-top:5px;margin-bottom:10px;"> + <a href="/web#action=project.open_view_project_all_config" target="_blank" style="display:inline-block;background-color:#875a7b;line-height:40px;text-decoration: none;color: #ffffff;border-radius: 3px;font-size:13px;font-weight:bold;text-align:center; padding:0 10px;">Try it now + </a> </div> </div> </field> diff --git a/addons/sale_expense/data/digest_data.xml b/addons/sale_expense/data/digest_data.xml index 1369710f272d..df852b2aff4f 100644 --- a/addons/sale_expense/data/digest_data.xml +++ b/addons/sale_expense/data/digest_data.xml @@ -1,16 +1,18 @@ <?xml version='1.0' encoding='utf-8'?> <odoo> <record id="digest_tip_sale_expense_0" model="digest.tip"> - <field name="name">Expense: try mailgateway</field> + <field name="name">Expense: Submit expenses by email</field> <field name="sequence">5</field> - <field name="group_id" ref="sales_team.group_sale_salesman_all_leads"/> + <field name="group_id" ref="base.group_user"/> <field name="tip_description" type="html"> <div> - <strong style="font-size: 16px;">Submit expenses by email</strong> - <div style="font-size: 14px;">Take a snapshot of your expenses and submit your expenses by email.<br/> - <div style="text-align:center;margin-top:5px;margin-bottom:10px;"> - <a href="/web#action=hr_expense.action_hr_expense_configuration" style="background-color:#56b3b5;padding:10px;text-decoration:none;color:#FFFFFF;border-radius:5px;font-size:12px;">Activate Expense Emails</a> - </div> + <b class="font-16" style="font-size: 20px;line-height: 30px">Submit expenses by email</b> + <p class="font-12" style="color:#888888;font-size: 15px; line-height: 25px; margin-top: 0">Take a snapshot of your expenses and submit your expenses by email.</p> + <div style="text-align:center;margin-top:5px;margin-bottom:10px;"> + <a href="/web#action=hr_expense.action_hr_expense_configuration" target="_blank" + style="display:inline-block;background-color:#875a7b;line-height:40px;text-decoration: none;color: #ffffff;border-radius: 3px;font-size:13px;font-weight:bold;text-align:center;padding:0 10px;"> + Activate Expense Emails + </a> </div> </div> </field> -- GitLab