summaryrefslogtreecommitdiff
path: root/addons/sms/wizard/sms_composer_views.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/sms/wizard/sms_composer_views.xml')
-rw-r--r--addons/sms/wizard/sms_composer_views.xml7
1 files changed, 6 insertions, 1 deletions
diff --git a/addons/sms/wizard/sms_composer_views.xml b/addons/sms/wizard/sms_composer_views.xml
index 1cb59d99dd3..e35b87949e9 100644
--- a/addons/sms/wizard/sms_composer_views.xml
+++ b/addons/sms/wizard/sms_composer_views.xml
@@ -39,7 +39,12 @@
</group>
</sheet>
<footer>
- <button string="Send SMS" type="object" class="oe_highlight" name="action_send_sms"/>
+ <button string="Send SMS" type="object" class="oe_highlight" name="action_send_sms"
+ attrs="{'invisible': [('composition_mode', 'not in', ('comment', 'numbers'))]}"/>
+ <button string="Put in queue" type="object" class="oe_highlight" name="action_send_sms"
+ attrs="{'invisible': [('composition_mode', '!=', 'mass')]}"/>
+ <button string="Send Now" type="object" name="action_send_sms_mass_now"
+ attrs="{'invisible': [('composition_mode', '!=', 'mass')]}"/>
<button string="Close" class="btn btn-secondary" special="cancel"/>
</footer>
</form>