diff options
| author | Thibault Delavallée <tde@openerp.com> | 2016-07-19 16:01:14 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2016-07-19 16:35:05 +0200 |
| commit | c70e2a5777263d5e29430ffa7fa4519cfaff3048 (patch) | |
| tree | d0bbc20859f48d73815bbd8e1d0f1c9a43995e72 /addons/mail/data/mail_data.xml | |
| parent | bcbf4316e669438e9b07c1da744667f689c123f7 (diff) | |
[FIX] mail: display access button on discussion emails if recipient can see the document
Currently no access button is displayed if the email is a discussion and has
no contextual actions like creating a new document, or setting the responsible
of the document. However it leads to emails being sent without access button.
This can be extremely frustrating and make the notification email quite
impossible to use efficiently.
With this commit when an user has access to a document the link to the document
is always displayed in the notification email.
Diffstat (limited to 'addons/mail/data/mail_data.xml')
| -rw-r--r-- | addons/mail/data/mail_data.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/data/mail_data.xml b/addons/mail/data/mail_data.xml index 44fd815a279..fa62d092b70 100644 --- a/addons/mail/data/mail_data.xml +++ b/addons/mail/data/mail_data.xml @@ -69,7 +69,7 @@ <meta itemprop="name" content="View ${ctx['model_name']}"/> </div> </div> -% if not ctx['is_discussion'] or not len(ctx['actions']) == 0 or ctx.get('is_accessible'): +% if not ctx['is_discussion'] or not len(ctx['actions']) == 0 or ctx.get('button_access') or ctx.get('is_accessible'): <div summary="o_mail_notification" style="padding:0px; width:600px; margin:0 auto; background: #FFFFFF repeat top /100%;color:#777777"> <table cellspacing="0" cellpadding="0" style="width:600px; border-collapse:collapse; background:inherit; color:inherit"> <tbody><tr> @@ -155,7 +155,7 @@ </tbody> </table> </div> -% if not ctx['is_discussion'] or not len(ctx['actions']) == 0: +% if not ctx['is_discussion'] or not len(ctx['actions']) == 0 or ctx.get('button_access'): <div style="padding:0px; width:600px; max-width:600px; margin:0 auto; background: #FFFFFF repeat top /100%;color:#777777"> % else: <div style="padding:0px; width:600px; max-width:600px; margin:0 auto; background: #FFFFFF repeat top /100%;> |
