Browse Source

[FIX] color not possible in tree anymore

12.3
Nicolas JEUDY 5 years ago
parent
commit
9ce95f0be2
  1. 7
      mail_tracking/views/mail_tracking_email_view.xml
  2. 4
      mail_tracking/views/mail_tracking_event_view.xml

7
mail_tracking/views/mail_tracking_email_view.xml

@ -42,7 +42,8 @@
<label for="tracking_event_ids"/>
<div>
<field name="tracking_event_ids">
<tree string="Tracking events" colors="grey:event_type in ('deferral');black:event_type in ('send');red:event_type in ('hard_bounce', 'soft_bounce', 'spam', 'reject');blue:event_type in ('unsub', 'click', 'open')">
<!-- TODO: colors="grey:event_type in ('deferral');black:event_type in ('send');red:event_type in ('hard_bounce', 'soft_bounce', 'spam', 'reject');blue:event_type in ('unsub', 'click', 'open')" -->
<tree string="Tracking events">
<field name="time"/>
<field name="event_type"/>
<field name="ip"/>
@ -62,8 +63,8 @@
<field name="name">mail.tracking.email.tree</field>
<field name="model">mail.tracking.email</field>
<field name="arch" type="xml">
<tree string="MailTracking emails" create="false" edit="false" delete="false"
colors="grey:state in (False, 'deferred');black:state in ('sent', 'delivered');green:state in ('opened');red:state in ('rejected', 'spam', 'bounced', 'soft-bounced');blue:state in ('unsub')">
<!-- TODO: colors="grey:state in (False, 'deferred');black:state in ('sent', 'delivered');green:state in ('opened');red:state in ('rejected', 'spam', 'bounced', 'soft-bounced');blue:state in ('unsub')"-->
<tree string="MailTracking emails" create="false" edit="false" delete="false">
<field name="time"/>
<field name="date" invisible="1"/>
<field name="name"/>

4
mail_tracking/views/mail_tracking_event_view.xml

@ -55,8 +55,8 @@
<field name="name">mail.tracking.event.tree</field>
<field name="model">mail.tracking.event</field>
<field name="arch" type="xml">
<tree string="MailTracking events" create="false" edit="false" delete="false"
colors="grey:event_type in ('deferral',);black:event_type in ('sent', 'delivered');red:event_type in ('hard_bounce', 'soft_bounce', 'spam', 'reject');blue:event_type in ('unsub', 'click', 'open')">
<!-- TODO: colors="grey:event_type in ('deferral',);black:event_type in ('sent', 'delivered');red:event_type in ('hard_bounce', 'soft_bounce', 'spam', 'reject');blue:event_type in ('unsub', 'click', 'open')" -->
<tree string="MailTracking events" create="false" edit="false" delete="false">
<field name="time"/>
<field name="tracking_email_id"/>
<field name="recipient"/>

Loading…
Cancel
Save