im using v9 erp and my email template is not working ...
<?xml version="1.0" ?><openerp> <data noupdate="1"> <record id="email_template_student" model="email.template"> <field name="name">Student created</field> <field name="email_from">vineethcybro@gmail.com</field> <field name="subject">You have been created</field> <field name="email_to">${object.email}</field> <field name="model_id" ref="student_school.model_student_school"/> <field name="body_html"> <![CDATA[ <p>Dear ${(object.name)},<br/><br/> Good job, you've just Registed in our school!<br/></p> Regards,<br/> Manager ]]> </field> </record> </data></openerp>
ERROR message ::....................
ParseError: "email.template" while parsing /home/vineeth/workspace/odoo_9/addons/school_management/student_school_email.xml:4, near<record id="email_template_student" model="email.template"> <field name="name">Student created</field> <field name="email_from">vineethcybro@gmail.com</field> <field name="subject">You have been created</field> <field name="email_to">${object.email}</field> <field name="model_id" ref="student_school.model_student_school"/> <field name="body_html"> hi </field> </record>
i tried specifing the model as mail.template and email.template and same error happends ,
__openerp__.py
{ 'name': "School management", 'summary': """school teacher student """, 'version': '1.0', 'description': """Using this application you can manage Teachers and Students details.
======================================================================= """, 'depends': ['base','hr','sale','mail'], 'data': ['student_school_email.xml', 'wizard/teacher_wizard.xml', 'school_management_view.xml', ], 'installable': True,}
Please edit your post and insert proper line breaks to make readable.
Hai Vineeth,
Change the model into mail.template and in the record it is given as <data noupdate="1"> so make sure that changes you are doing is affecting. Better remove noupdate for now . Once the Error is gone make it back to noupdate.
Thank You