We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Context
email_template_qweb was introduced in https://github.com/OCA/social/pull/55, Odoo was still using Jinja to render email template
email_template_qweb
https://github.com/OCA/social/pull/55
Starting from Odoo 15.0, Odoo refactored all its mail templates to use qweb instead: https://github.com/odoo/odoo/pull/77377
https://github.com/odoo/odoo/pull/77377
t-call
For those who would like not to use the module:
qweb
body_html
The text was updated successfully, but these errors were encountered:
Thanks for the info. Have you tried to do such t-call and everything is working properly?
Sorry, something went wrong.
Hello @pedrobaeza, yes I did some testing
template
<template id="test_module.test_template" name="Test Template"> <div>testing</div> </template>
email.template
<record id="test_module.test_mail_template" model="mail.template"> <field name="name">Test</field> <field name="subject">Demo</field> <field name="model_id" ref="stock.model_stock_picking"/> <field name="email_from">test@com</field> <field name="partner_to">test1@com</field> <field name="lang">{{ object.partner_id.lang }}</field> <field name="body_html" type="html"> <div> <t t-call="test_module.test_template"/> </div> </field> </record>
Result
Template Inheritance
<template id="test_module.test_template_inherited" name="Test Template Inherited" inherit_id="test_module.test_template"> <xpath expr="//div" position="inside"> <div> <span> testing 2</span> </div> </xpath> </template>
Great, thanks for confirming! Then indeed the module is no longer needed.
No branches or pull requests
Context
email_template_qweb
was introduced inhttps://github.com/OCA/social/pull/55
, Odoo was still using Jinja to render email templateStarting from Odoo 15.0, Odoo refactored all its mail templates to use qweb instead:
https://github.com/odoo/odoo/pull/77377
t-call
to refer ir.ui.view (with inheritance of course)For those who would like not to use the module:
qweb
body_html
to includet-call
to the viewThe text was updated successfully, but these errors were encountered: