diff options
| author | ryv-odoo <ryv@odoo.com> | 2019-10-01 11:14:04 +0000 |
|---|---|---|
| committer | ryv-odoo <ryv@odoo.com> | 2019-10-01 11:14:04 +0000 |
| commit | 3bca1d52a03adb34df7beeb634f54c504a0ac813 (patch) | |
| tree | 91a8d3615bd2a763927f1baa10e8ca6d9c5d9456 | |
| parent | a7489feed09c9fe69e2712bfe17b4f45933c71b4 (diff) | |
[FIX] mass_mailing_sms : fix KPI in draft
There is the % Clicked stat button in SMS marketing form view when it
is on draft or test. Fix to be only visible
when the state is not in draft or test
TASK_ID : 2078918
closes odoo/odoo#37615
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
| -rw-r--r-- | addons/mass_mailing_sms/views/mailing_mailing_views.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mass_mailing_sms/views/mailing_mailing_views.xml b/addons/mass_mailing_sms/views/mailing_mailing_views.xml index e30e2d6d3a0..0b7193190d0 100644 --- a/addons/mass_mailing_sms/views/mailing_mailing_views.xml +++ b/addons/mass_mailing_sms/views/mailing_mailing_views.xml @@ -87,7 +87,7 @@ type="object" context="{'search_default_filter_clicked': True}" class="oe_stat_button" - attrs="{'invisible': [('mailing_type', '!=', 'sms')]}"> + attrs="{'invisible': ['|',('mailing_type', '!=', 'sms'),('state', 'in', ('draft','test'))]}"> <field name="clicks_ratio" string="Clicked" widget="percentpie"/> </button> </xpath> |
