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