From fcb51faa9f5a65bac313963673549cf5c10767c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 16 Sep 2016 09:34:30 +0200 Subject: [FIX] mail: fix display of actions button in notification email --- addons/mail/data/mail_data.xml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'addons/mail/data/mail_data.xml') diff --git a/addons/mail/data/mail_data.xml b/addons/mail/data/mail_data.xml index 3645ba2e337..6dda90ccdd4 100644 --- a/addons/mail/data/mail_data.xml +++ b/addons/mail/data/mail_data.xml @@ -77,30 +77,30 @@ % endif % if not ctx['is_discussion'] or not len(ctx['actions']) == 0 or ctx.get('button_access'): -
- +
+
-- cgit v1.2.3 From 458aaca328491a993f7458520b047869a770325e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 16 Sep 2016 09:34:43 +0200 Subject: [IMP] mail: reimplement grouping of notification recipients There is now a single method easier to inherit to add specific behavior for the display of access button as well as actions buttons. All addons using this mechanism are updated accordingly. --- addons/mail/data/mail_data.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'addons/mail/data/mail_data.xml') diff --git a/addons/mail/data/mail_data.xml b/addons/mail/data/mail_data.xml index 6dda90ccdd4..c229ef0f54e 100644 --- a/addons/mail/data/mail_data.xml +++ b/addons/mail/data/mail_data.xml @@ -67,7 +67,7 @@ -% if ctx.get('button_access'): +% if ctx.get('has_button_access'):
@@ -76,22 +76,22 @@
% endif -% if not ctx['is_discussion'] or not len(ctx['actions']) == 0 or ctx.get('button_access'): +% if not ctx['is_discussion'] or not len(ctx['actions']) == 0 or ctx.get('has_button_access'):
- % if ctx.get('button_access') or ctx.get('button_follow') or ctx.get('button_unfollow'): - ${ctx['button_access']['title']} + % if ctx.get('button_access'): + ${ctx['button_access']['title']} % endif % if ctx.get('button_follow'): - % if ctx.get('actions'): + % if ctx.get('button_access'): | % endif - ${ctx['button_follow']['title']} + ${ctx['button_follow']['title']} % elif ctx.get('button_unfollow'): - % if ctx.get('actions'): + % if ctx.get('button_access'): | % endif - ${ctx['button_unfollow']['title']} + ${ctx['button_unfollow']['title']} % endif % if ctx.get('actions'): % for action in ctx['actions']: | - ${action['title']} + ${action['title']} % endfor % endif
- % if ctx.get('button_access'): + % if ctx.get('has_button_access'): ${ctx['button_access']['title']} % endif - % if ctx.get('button_follow'): - % if ctx.get('button_access'): + % if ctx.get('has_button_follow'): + % if ctx.get('has_button_access'): | % endif ${ctx['button_follow']['title']} - % elif ctx.get('button_unfollow'): - % if ctx.get('button_access'): + % elif ctx.get('has_button_unfollow'): + % if ctx.get('has_button_access'): | % endif ${ctx['button_unfollow']['title']} -- cgit v1.2.3