[FIX] stock: incoming shipments should be marked red when late

Incoming shipments are marked red according to creation date which does
not really make much sense.

closes #1061

note: it was already like this in 8.0 with 201f1c323
This commit is contained in:
andrius-preimantas 2014-07-10 10:26:56 +03:00 committed by Nicolas Lempereur
parent a197c91458
commit 831fbd01f7
1 changed files with 2 additions and 2 deletions

View File

@ -727,7 +727,7 @@
<field name="name">stock.picking.tree</field>
<field name="model">stock.picking</field>
<field name="arch" type="xml">
<tree colors="blue:state == 'draft';grey:state == 'cancel';red:state not in ('cancel', 'done') and date &lt; current_date" string="Picking list">
<tree colors="blue:state == 'draft';grey:state == 'cancel';red:state not in ('cancel', 'done') and min_date &lt; current_date" string="Picking list">
<field name="name"/>
<field name="backorder_id"/>
<field name="origin"/>
@ -1003,7 +1003,7 @@
<field name="name">stock.picking.in.tree</field>
<field name="model">stock.picking.in</field>
<field name="arch" type="xml">
<tree colors="blue:state == 'draft';grey:state == 'done';red:state not in ('cancel', 'done') and date &lt; current_date" string="Picking list">
<tree colors="blue:state == 'draft';grey:state == 'done';red:state not in ('cancel', 'done') and min_date &lt; current_date" string="Picking list">
<field name="name"/>
<field name="partner_id" string="Supplier"/>
<field name="backorder_id"/>