[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>
This commit is contained in:
ryv-odoo
2019-10-01 11:14:04 +00:00
parent a7489feed0
commit 3bca1d52a0
@@ -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>