From 4059bbabac8983a335545b06e5366dcda32445a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 15 Sep 2021 13:48:24 +0000 Subject: [PATCH] [IMP] mail: give access link to document in "light" notification layout Light template is used is several notification processes as an alternate layout to the classic one. It currently lacks any link to the document that generated the notifications. We add this behavior in this commit. Behavior is the same as the classic notification email, aka a link to mail/view that chooses what to do based on access rights and user status (internal, portal, ...). Task-2621326 (Mail: add 'view' button in 'light notification template') Part-of: odoo/odoo#76418 --- .../mail/data/mail_templates_email_layouts.xml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/addons/mail/data/mail_templates_email_layouts.xml b/addons/mail/data/mail_templates_email_layouts.xml index 7f04e5a05de..593fedf3722 100644 --- a/addons/mail/data/mail_templates_email_layouts.xml +++ b/addons/mail/data/mail_templates_email_layouts.xml @@ -74,10 +74,20 @@
- Your
- - - + Your +
+ + + + + + + + + + + +