跳至內容
選單
此問題已被標幟

I am running odoo 11 community version and i am using the hotel management module. I am making a reservation and thereafter when I send a reservation email odoo displays below error. I got no clue, I could appreciate anyone's help coz am really new to odoo

Failed to render template <Template memory:7f08b0de65f8> using values {'format_date': <function MailTemplate.render_template.<locals>.<lambda> at 0x7f08c4bb90d0>, 'format_tz': <function MailTemplate.render_template.<locals>.<lambda> at 0x7f08c4bb9d08>, 'format_amount': <function MailTemplate.render_template.<locals>.<lambda> at 0x7f08c493ea60>, 'user': res.users(7,), 'ctx': {'lang': 'en_US', 'tz': False, 'uid': 7, 'params': {'action': 359}, 'active_model': 'hotel.reservation', 'active_id': 540, 'active_ids': [540], 'default_model': 'hotel.reservation', 'default_res_id': 540, 'default_use_template': True, 'default_template_id': 12, 'default_composition_mode': 'comment', 'force_send': True, 'mark_so_as_sent': True, 'search_disable_custom_filters': True, 'tpl_partners_only': True, 'safe': False}, 'object': hotel.reservation(540,)}

頭像
捨棄
最佳答案

Hi,

The issue is with the corresponding email template used to send the email. You have to check the corresponding email template and see what is the issue. Make sure that you haven't altered or changed anything in the code or from the user interface.

You can see the template from the user interface by activating the developer mode and navigate to Settings -> Technical -> Email -> Templates, from here get trace the corresponding template and check.


Regarding issue you can double check in a new database and if issue exist in new db, report it to the author of the module, so that they will fix it.


Thanks

頭像
捨棄
最佳答案

It happens to me too : https://www.odoo.com/fr_FR/forum/aide-1/question/12-0-mail-digest-mail-template-body-is-not-displayed-158639


I am more then sure that I didn't change anything in the template + whenever I use a new DB it appears in the preview but when I JUST click on the html body and want to see it again in the preview => I'm not able to do it  

頭像
捨棄
作者 最佳答案

Thanks @Niyas Raphy, the problem was all about the email template. I couldn't solve it on that database but I changed to another database and the problem was solved 

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
12月 24
6001
6
4月 23
7202
1
5月 19
3542
0
10月 15
4248
0
9月 25
494