[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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user