diff options
| author | Deep Patel <dep@odoo.com> | 2017-05-16 17:41:20 +0530 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2017-05-19 15:50:00 +0200 |
| commit | b6660433c681bf199a4736eae56b0cc02894259c (patch) | |
| tree | 9afce2f238c111e2d017634be610768ba3c21370 | |
| parent | f57f133047d3c17322c6f5072d360256743253ee (diff) | |
[IMP] mail : Display `Log` instead of `Send` in full mail composer
Purpose
=======
Improve label in full mail composer.
Specification
=============
In full mail composer if it's log than send button string should be "Log".
| -rw-r--r-- | addons/mail/wizard/mail_compose_message_view.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/mail/wizard/mail_compose_message_view.xml b/addons/mail/wizard/mail_compose_message_view.xml index 191647f59d1..281c92e1523 100644 --- a/addons/mail/wizard/mail_compose_message_view.xml +++ b/addons/mail/wizard/mail_compose_message_view.xml @@ -74,7 +74,8 @@ context="{'default_model': model, 'default_body_html': body, 'default_subject': subject}"/> </group> <footer> - <button string="Send" name="send_mail_action" type="object" class="btn-primary"/> + <button string="Send" attrs="{'invisible': [('is_log', '=', True)]}" name="send_mail_action" type="object" class="btn-primary"/> + <button string="Log" attrs="{'invisible': [('is_log', '=', False)]}" name="send_mail_action" type="object" class="btn-primary"/> <button string="Cancel" class="btn-default" special="cancel" /> <button icon="fa-lg fa-save" type="object" name="save_as_template" string="Save as new template" |
