Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
5651 Visualizações

Hi everybody,

I use Odoo 9 with the mass mailing module. Right now I am using templates based on Jinja2 but now I want to switch to qweb for my email templates. 

I already installed the Module "QWeb for email templates" (https://www.odoo.com/apps/modules/9.0/email_template_qweb/).

The description of this module says: 

To use this module, you need to:

1. Select QWeb in the field Body templating engine

2. Select a QWeb view to be used to render the body field

3. Apart from QWeb's standard variables, you also have access to object and email_template, which are browse records of the current object and the email template in use, respectively.


The first one is easy. Under "Setting -> Technical settings -> email -> templates" I already created a email template and there I can use qweb code. The preview of this template shows that qweb is working correctly.

But I don't understand the second point. Where can I change the rendering engine for the email creation of the mass mailing module. If I create a mass mailing email I can not use qweb - only ninja2.

Thank you in advance for your help.

Best regards
Christoph

Avatar
Cancelar
Melhor resposta

I've been fixing it for version 8. But it should work for 9 as well. You might need to migrate the onchange() to API 8 though:

https://github.com/a0c/social/commit/fbaafc4f788ac8981f6ce5e0764c22d5f9e68747

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
abr. 20
2806
0
jan. 20
3409
3
ago. 18
10481
5
nov. 24
46763
0
ago. 24
950