In my custom room booking application, when user book a room a mail will send to the admin. In the mail template, there is an approve button. Once the admin clicks the approve button, it should redirect to the approval form view. How can I do that by placing a link in the email template?
相关问题
- How to add sender name before sender address in py
- Android: Using Intent to send email - only offerin
- Verify if an email address exists or not
- How can I add condition on mail notification larav
- My email signature will not appear when generating
相关文章
- How do I make a forward e-mail link?
- Debug HTML Email in Gmail App
- Sending email using php, gmail, and swiftmailer ca
- Android - getting an error “no application can per
- How can the Return-Path header be different than t
- Regex Email - Ignore leading and trailing spaces?
- Sending mail with ASP.Net vNext
- TFS email notification
You can put in your template a text ${ctx['url']} and then render send template with
template.with_context(url=url).send_mail(self.id)
.${ctx['url']}
will be replaced with url you passed along with context.The url you have to compose is of the following form:
http://odoo.server.com/web?db=#id=&view_type=form&model=