[IMP] hr_recruitment: remove grey area around mail text content
The commit includes changes to the email layout template. The existing template id `mail_notification_light` has been replaced with a template id `mail_notification_light_without_background`. This template adds a white background color to the table element within the email notification, enhancing the visual appearance. task-3356254 closes odoo/odoo#125703 Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
This commit is contained in:
@@ -5,4 +5,10 @@
|
||||
Employee created: <a href="#" t-att-data-oe-id="applicant.emp_id.id" data-oe-model="hr.employee"><t t-esc="applicant.emp_id.name"/></a>
|
||||
</template>
|
||||
|
||||
<template id="mail_notification_light_without_background" inherit_id="mail.mail_notification_light">
|
||||
<xpath expr="//t//table[@role='presentation']" position="attributes">
|
||||
<attribute name="style" add="background-color: white;" separator=" "/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</data></odoo>
|
||||
|
||||
@@ -463,7 +463,7 @@ class Applicant(models.Model):
|
||||
res['stage_id'] = (applicant.stage_id.template_id, {
|
||||
'auto_delete_keep_log': False,
|
||||
'subtype_id': self.env['ir.model.data']._xmlid_to_res_id('mail.mt_note'),
|
||||
'email_layout_xmlid': 'mail.mail_notification_light'
|
||||
'email_layout_xmlid': 'hr_recruitment.mail_notification_light_without_background'
|
||||
})
|
||||
return res
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ class ApplicantGetRefuseReason(models.TransientModel):
|
||||
applicants = self.applicant_ids.filtered(lambda x: x.email_from or x.partner_id.email)
|
||||
# TDE note: keeping 16.0 behavior, clean me please
|
||||
message_values = {
|
||||
'email_layout_xmlid' : 'mail.mail_notification_light',
|
||||
'email_layout_xmlid' : 'hr_recruitment.mail_notification_light_without_background',
|
||||
}
|
||||
if len(applicants) > 1:
|
||||
applicants.with_context(active_test=True).message_mail_with_source(
|
||||
|
||||
Reference in New Issue
Block a user