[FIX] crm_partner_assign: colors only if there is a stage on the lead
authorDenis Ledoux <dle@odoo.com>
Thu, 23 Oct 2014 13:05:55 +0000 (15:05 +0200)
committerDenis Ledoux <dle@odoo.com>
Thu, 23 Oct 2014 13:07:40 +0000 (15:07 +0200)
addons/crm_partner_assign/crm_portal_view.xml

index 3c0a2b6..7a8f31b 100644 (file)
@@ -6,7 +6,7 @@
             <field name="model">crm.lead</field>
             <field name="priority" eval="32"/>
             <field name="arch" type="xml">
-            <tree string="Leads" colors="red:stage_id[1]=='Disinterested';black:stage_id[1]=='Interested'">
+            <tree string="Leads" colors="red:stage_id and stage_id[1]=='Disinterested';black:stage_id and stage_id[1]=='Interested'">
               <field name="date_deadline" invisible="1"/>
               <field name="create_date"/>
               <field name="name" string="Subject"/>