RATIONALE
Mail template model holds a field telling odoo mail engine to automatically
add the current user's signature to the body. Its use depends on the use
case
* using the template in the composer on a single record: it is displayed
in the rendered template in the composer, meaning people could change it.
This behavior is interesting as it allows to see the email content;
* using the template in the composer in mass mail mode: it is not displayed
as only the raw jinja is displayed. It is therefore not obvious that it
will be appended to the body of the mail. People could add it manually and
have 2 signatures as a result;
A mechanism automatically adding a signature to sent emails when posting a
message is already implemented and is based on template existence. If a
template has been used when posting, no signature is added in sent emails.
Otherwise it is automatically added. This behavior should not change.
Behavior will therefore be
* use a template -> specify signature usage in it manually through jinja;
* do not use a template -> signature added in sent emails;
SPECIFICATIONS
Remove user_signature.
Update template body accordingly. In customer oriented templates that are using
it and do not already contain it, manually add a call to user.signature within
the jinja code. When set to False, just remove its declaration.
Quickly clean some signature integration.
LINKS
Task ID 2089252
Community PR odoo/odoo#39482
Enterprise PR odoo/enterprise#6459
Upgrade PR odoo/upgrate#761
Related: odoo/enterprise#6459
Related: odoo/upgrade#761
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Co-authored-by: Michaël Mattiello <mcm@odoo.com>
Co-authored-by: Thibault Delavallée <tde@odoo.com>
108 lines
4.9 KiB
XML
108 lines
4.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
|
|
<record id="dep_administration" model="hr.department">
|
|
<field name="name">Administration</field>
|
|
</record>
|
|
|
|
<record id="dep_sales" model="hr.department">
|
|
<field name="name">Sales</field>
|
|
</record>
|
|
|
|
<record id="employee_admin" model="hr.employee">
|
|
<field name="name" eval="obj(ref('base.partner_admin')).name" model="res.partner"/>
|
|
<field name="user_id" ref="base.user_admin"/>
|
|
<field name="address_id" ref="base.partner_admin"/>
|
|
<field name="address_home_id" ref="base.partner_admin"/>
|
|
<field name="image_1920" eval="obj(ref('base.partner_admin')).image_1920" model="res.partner"/>
|
|
</record>
|
|
|
|
<record id="onboarding_setup_it_materials" model="hr.plan.activity.type">
|
|
<field name="summary">Setup IT Materials</field>
|
|
<field name="responsible">manager</field>
|
|
</record>
|
|
|
|
<record id="onboarding_plan_training" model="hr.plan.activity.type">
|
|
<field name="summary">Plan Training</field>
|
|
<field name="responsible">manager</field>
|
|
</record>
|
|
|
|
<record id="onboarding_training" model="hr.plan.activity.type">
|
|
<field name="summary">Training</field>
|
|
<field name="responsible">employee</field>
|
|
</record>
|
|
|
|
<record id="offboarding_setup_compute_out_delais" model="hr.plan.activity.type">
|
|
<field name="summary">Compute Out Delais</field>
|
|
<field name="responsible">manager</field>
|
|
</record>
|
|
|
|
<record id="offboarding_take_back_hr_materials" model="hr.plan.activity.type">
|
|
<field name="summary">Take Back HR Materials</field>
|
|
<field name="responsible">manager</field>
|
|
</record>
|
|
|
|
<record id="onboarding_plan" model='hr.plan'>
|
|
<field name="name">Onboarding</field>
|
|
<field name="plan_activity_type_ids" eval="[(6, 0, [
|
|
ref('hr.onboarding_setup_it_materials'),
|
|
ref('hr.onboarding_plan_training'),
|
|
ref('hr.onboarding_training'),
|
|
])]"/>
|
|
</record>
|
|
|
|
<record id="offboarding_plan" model='hr.plan'>
|
|
<field name="name">Offboarding</field>
|
|
<field name="plan_activity_type_ids" eval="[(6, 0, [
|
|
ref('hr.offboarding_setup_compute_out_delais'),
|
|
ref('hr.offboarding_take_back_hr_materials'),
|
|
])]"/>
|
|
</record>
|
|
|
|
<record id="mail_template_data_unknown_employee_email_address" model="mail.template">
|
|
<field name="name">HR: mailgateway unknown employee bounce</field>
|
|
<field name="model_id" ref="base.model_ir_module_module"/>
|
|
<field name="subject">Your document has not been created</field>
|
|
<field name="email_from">${user.email_formatted | safe}</field>
|
|
<field name="email_to">${ctx['email_to']|safe}</field>
|
|
<field name="body_html" type="html">
|
|
<table border="0" cellpadding="0" cellspacing="0" style="padding-top: 16px; background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;"><tr><td align="center">
|
|
<table border="0" cellpadding="0" cellspacing="0" width="590" style="padding: 16px; background-color: white; color: #454748; border-collapse:separate;">
|
|
<tbody>
|
|
<tr>
|
|
<td align="center" style="min-width: 590px;">
|
|
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
|
|
<tr><td valign="top" style="font-size: 13px;">
|
|
<div>
|
|
Hi,<br/>
|
|
Your document has not been created because your email address is not recognized. Please send emails with the email address recorded on your employee information, or contact your HR manager.
|
|
</div>
|
|
</td></tr>
|
|
</table>
|
|
</td></tr>
|
|
</tbody>
|
|
</table>
|
|
</td></tr>
|
|
<!-- POWERED BY -->
|
|
<tr><td align="center" style="min-width: 590px;">
|
|
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: #F1F1F1; color: #454748; padding: 8px; border-collapse:separate;">
|
|
<tr><td style="text-align: center; font-size: 13px;">
|
|
Powered by <a target="_blank" href="https://www.odoo.com?utm_source=db&utm_medium=hr" style="color: #875A7B;">Odoo</a>
|
|
</td></tr>
|
|
</table>
|
|
</td></tr>
|
|
</table>
|
|
</field>
|
|
<field name="lang">${user.lang}</field>
|
|
<field name="auto_delete" eval="True"/>
|
|
</record>
|
|
|
|
<record model="ir.config_parameter" id="hr_presence_control_login" forcecreate="False">
|
|
<field name="key">hr.hr_presence_control_login</field>
|
|
<field name="value">True</field>
|
|
</record>
|
|
|
|
</data>
|
|
</odoo>
|