From 0abd35fbfbcd24bb3ec8994a58c32fc0feb3098f Mon Sep 17 00:00:00 2001 From: Mansi Gandhi Date: Mon, 6 Jun 2016 16:55:46 +0530 Subject: [PATCH] [IMP] mail: Notification email template header buttons order On emails sent from tasks, the button "View Task" should be the main Call to Action (primary), not New Task (that should be link like unfollow): --- addons/mail/data/mail_data.xml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/addons/mail/data/mail_data.xml b/addons/mail/data/mail_data.xml index 44fd815a279..3f9d152f389 100644 --- a/addons/mail/data/mail_data.xml +++ b/addons/mail/data/mail_data.xml @@ -78,29 +78,27 @@

- % if ctx.get('actions'): - % for action in ctx['actions']: - ${action['title']} - % endfor + % if ctx.get('button_access') or ctx.get('button_follow') or ctx.get('button_unfollow'): + ${ctx['button_access']['title']} % endif % if ctx.get('button_follow'): % if ctx.get('actions'): | % endif - ${ctx['button_follow']['title']} + ${ctx['button_follow']['title']} % elif ctx.get('button_unfollow'): % if ctx.get('actions'): | % endif - ${ctx['button_unfollow']['title']} + ${ctx['button_unfollow']['title']} % endif - % if ctx.get('button_access') or ctx.get('button_follow') or ctx.get('button_unfollow'): % if ctx.get('actions'): - | - % endif - ${ctx['button_access']['title']} + | + % for action in ctx['actions']: + ${action['title']} + % endfor % endif