Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
6223 Vizualizări

Hi Forum!

There is a problem with an email template.


odoo.addons.mail.models.mail_template: Failed to render template using values {'format_date': . at 0x7f5a9beddd08>, 'format_tz': . at 0x7f5a9bedd0d0>, 'format_amount': . at 0x7f5a47fed620>, 'user': res.users(1,), 'ctx': {'lang': 'hu_HU', 'tz': 'Europe/Brussels', 'uid': 1, 'params': {'action': 104}, 'template_id': 98, 'active_model': 'mail.template', 'active_id': 98, 'active_ids': [98], 'search_disable_custom_filters': True, 'safe': False}, 'object': profile(1236821,)}

jinja2.exceptions.UndefinedError: 'odoo.tools.misc.frozendict object' has no attribute 'context_data'


i can't figure out what the problem might be.


Thank you for your help!


Regards,

Steven


Imagine profil
Abandonează
Cel mai bun răspuns

Hi Steven,

Open your mail template in edit mode. Click on the "< / >" icon available in the body section.

It will open your template's body content in a code view. After that, you can search "context_data" in that code view. If you will find some code related to "context_data" in that code view, analyze that code and fix it accordingly.

I hope it will work for you.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
feb. 24
2590
1
iul. 23
3476
3
dec. 23
19190
0
aug. 21
2597
3
aug. 20
6591