Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
6106 Переглядів

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.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
лют. 24
2445
1
лип. 23
3347
3
груд. 23
19073
0
серп. 21
2491
3
серп. 20
6367