Skip to Content
Menu
This question has been flagged
2651 Views
this is my email template.
using below template i am getting error
RELAXNGV:RELAXNG_ERR_EXTRACONTENT: Element odoo has extra content: record

id="employee_resignation_lwd_three_days_before_remind" model="mail.template">

name="name">template title
name="model_id" ref="model.model_resignation_mgt"/>
name="subject">Resignation: ${object.employee_id.employee_name} ${object.employee_id.employee_id}
name="email_from">"alert" <alerts@gmail.com>
name="email_to">${object.employee_id.emailid | safe}
name="email_cc">
${object.employee_id.reporting_to_id.emailid | safe},${ctx.get('context',{}).get('hod_email','')}

name="body_html" type="html">

Dear ${object.employee_id.employee_name},




Please find the attached Full and Final Settlement form (The pdf file will be shared
separately)
to be filled and signed off by respective departments. This form is to be submitted
to HR SPOC by your Last working Date.


We would love to know all about your journey with us. Please click on the link given below to
fill out the Exit Feedback Form.


Please Note:


id="p0">


Kindly ensure that the assets assigned to you during your tenure in
the company are returned to respective departments in the same condition given to
you, on or
before LWD.

Ensure to complete your handover by or before your last working
day, to avoid notice period extension.

Submit your Full and Final Settlement form to the HR Team on your
Last working day subject to which your notice period shall be considered completed.
 


below is my python code.
template.sudo().with_context(context = {'hod_email': hod_email}).send_mail(resignation.id, force_send=True)


Avatar
Discard
Related Posts Replies Views Activity
4
May 24
10076
1
Apr 24
1564
0
Nov 23
525
1
Sep 23
568
2
Aug 23
2427