跳至内容
菜单
此问题已终结
1 回复
6225 查看

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


形象
丢弃
最佳答案

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.

形象
丢弃
相关帖文 回复 查看 活动
1
2月 24
2590
1
7月 23
3476
3
12月 23
19191
0
8月 21
2597
3
8月 20
6591