تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
6308 أدوات العرض

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
فبراير 24
2655
1
يوليو 23
3536
3
ديسمبر 23
19237
0
أغسطس 21
2668
3
أغسطس 20
6667