Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
14043 Lượt xem

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,)}

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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  

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 12 24
5993
6
thg 4 23
7170
1
thg 5 19
3538
0
thg 10 15
4239
0
thg 9 25
482