Skip to Content
Menu
This question has been flagged
1 Reply
4407 Views

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


Avatar
Discard
Best Answer

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.

Avatar
Discard
Related Posts Replies Views Activity
1
Feb 24
924
1
Jul 23
1650
3
Dec 23
17571
0
Aug 21
1528
3
Aug 20
4846