summaryrefslogtreecommitdiff
path: root/addons/mail
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-08-07 18:11:15 +0200
committerChristophe Simonis <chs@odoo.com>2018-08-07 18:11:15 +0200
commitced9156a97ea502050b4e827ef2237fa2cd9410f (patch)
tree395a77954dda3f5c10ce7cc18818a8f208ad880a /addons/mail
parent174bd3a7ac137740dc8e0310e330075953e116e6 (diff)
parent65a80cf3fd2fd0c47c774ac9cc183d9d3bc4af55 (diff)
[MERGE] forward port branch saas-15 up to 65a80cf3fd2
Diffstat (limited to 'addons/mail')
-rw-r--r--addons/mail/views/mail_template_views.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/mail/views/mail_template_views.xml b/addons/mail/views/mail_template_views.xml
index d54cb59c957..9b24457450e 100644
--- a/addons/mail/views/mail_template_views.xml
+++ b/addons/mail/views/mail_template_views.xml
@@ -9,8 +9,9 @@
<sheet>
<div class="oe_button_box" name="button_box">
<field name="ref_ir_act_window" invisible="1"/>
- <button class="oe_stat_button" name="create_action" type="object"
+ <button class="oe_stat_button"
groups="base.group_system"
+ name="create_action" type="object"
attrs="{'invisible':[('ref_ir_act_window','!=',False)]}" icon="fa-plus"
help="Display an option on related documents to open a composition wizard with this template">
<div class="o_field_widget o_stat_info">
@@ -18,7 +19,7 @@
<span class="o_stat_text">Context Action</span>
</div>
</button>
- <button name="unlink_action" type="object"
+ <button name="unlink_action" type="object"
groups="base.group_system"
class="oe_stat_button" icon="fa-minus"
attrs="{'invisible':[('ref_ir_act_window','=',False)]}"