Skip to Content
Menu
This question has been flagged

Hi. I modified mail.message_notification_email to add some text at the end of the notifications. It works fine when system or user sends a message to the user. The problem is when this user answer the email. The notification arrives well to the system and you can see it (per example, if the user answer a message from an order, you can see his response in the order) but when odoo try to send the email notification to the subscribers, then it fails.


Error to render compiling AST
RuntimeError: object unbound
Template: mail.message_notification_email
Path: /t/div/t[2]/t
Node: <t t-set="url" t-value="request.httprequest.host_url"/>

I use request.httprequest.host_url to have the url domain, so I can put an url, like 

<a t-attf-href="{{request.httprequest.host_url}}web/login">go to the website</a>

I tried too with request.env['ir.config_parameter'].sudo().get_param('web.base.url') but I get the same error. Why does it happen only when recipient answer and not when user backend send the message to the user? Why can I do?

Thanks.

Avatar
Discard
Related Posts Replies Views Activity
2
Oct 17
4306
8
Jul 24
23045
0
Sep 23
1424
1
Sep 21
3798
0
Nov 20
3263