summaryrefslogtreecommitdiff
path: root/addons/mass_mailing_sms/views
diff options
context:
space:
mode:
authorryv-odoo <ryv@odoo.com>2019-09-30 09:16:10 +0000
committerryv-odoo <ryv@odoo.com>2019-09-30 09:27:17 +0000
commit70519489e95da62cc7c44ba8b12b53768973b48b (patch)
tree554d4dbea7d5eaca621842d6eda1cba99cc7e45c /addons/mass_mailing_sms/views
parenteebeefcf8bd65bdfc020667352d842b919b1a50a (diff)
[IMP] mass_mailing(_sms) : improve mail/sms marketing forms
- In the mail/sms marketing form, compress all blue ribbons into one to avoid multiple space between ribbons. - In the sms marketing form, we add a clicked stat button to have the same information that the kanban view. - In the mail marketing form (when sms is enabled), when the state is in draft, stat buttons opened and replied was present for no reason (only with sms marketing installed). Fix by adding correct invisible condition. TASK_ID 2075733
Diffstat (limited to 'addons/mass_mailing_sms/views')
-rw-r--r--addons/mass_mailing_sms/views/mailing_mailing_views.xml13
1 files changed, 11 insertions, 2 deletions
diff --git a/addons/mass_mailing_sms/views/mailing_mailing_views.xml b/addons/mass_mailing_sms/views/mailing_mailing_views.xml
index dedfd377b0b..0d3329aafe9 100644
--- a/addons/mass_mailing_sms/views/mailing_mailing_views.xml
+++ b/addons/mass_mailing_sms/views/mailing_mailing_views.xml
@@ -82,11 +82,20 @@
<field name="sent" string="Sent" widget="statinfo"/>
</button>
</xpath>
+ <xpath expr="//button[@name='action_view_opened']" position="after">
+ <button name="action_view_clicked"
+ type="object"
+ context="{'search_default_filter_clicked': True}"
+ class="oe_stat_button"
+ attrs="{'invisible': [('mailing_type', '!=', 'sms')]}">
+ <field name="clicks_ratio" string="Clicked" widget="percentpie"/>
+ </button>
+ </xpath>
<xpath expr="//button[@name='action_view_opened']" position="attributes">
- <attribute name="attrs">{'invisible': [('mailing_type', '!=', 'mail')]}</attribute>
+ <attribute name="attrs">{'invisible': ['|',('mailing_type', '!=', 'mail'),('state', 'in', ('draft','test'))]}</attribute>
</xpath>
<xpath expr="//button[@name='action_view_replied']" position="attributes">
- <attribute name="attrs">{'invisible': [('mailing_type', '!=', 'mail')]}</attribute>
+ <attribute name="attrs">{'invisible': ['|',('mailing_type', '!=', 'mail'),('state', 'in', ('draft','test'))]}</attribute>
</xpath>
<!-- Form -->
<xpath expr="//page[@name='mail_body']" position="attributes">