如何在odoo的电子邮件模板中放置指向视图的链接 [英] How to place a link to a view in the email template of odoo

查看:292
本文介绍了如何在odoo的电子邮件模板中放置指向视图的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的自定义房间预订应用程序中,当用户预订房间时,邮件将发送给管理员.在邮件模板中,有一个批准按钮.管理员单击批准"按钮后,应将其重定向到批准表单视图.如何通过在电子邮件模板中放置链接来做到这一点?

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?

推荐答案

您要编写的网址具有以下形式:

The url you have to compose is of the following form:

http://odoo.server.com/web?db= #id = & view_type = form& model =

http://odoo.server.com/web?db=#id=&view_type=form&model=

这篇关于如何在odoo的电子邮件模板中放置指向视图的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆