← Back to team overview

openerp-india team mailing list archive

[Bug 898358] [NEW] picking tree view date/min_date color

 

Public bug reported:

In picking view: stock.view_picking_out_tree
tree color attribute is:
<tree colors="blue:state in ('draft');grey:state in ('cancel');red:state not in ('cancel', 'done') and date &lt; current_date" string="Delivery Orders">

the "red:state not in ('cancel', 'done') and date &lt; current_date" is bugging me:
it might not be a bug, but I think it would make more sense if it was "red:state not in ('cancel', 'done') and min_date &lt; current_date" instead.

min_date is the expected date, date is supposed to be the order date: why bother signaling picking which were done in the past ?
All my picking were ordered in the past...

        'min_date': fields.function(get_min_max_date, fnct_inv=_set_minimum_date, multi="min_max_date",
                 method=True, store=True, type='datetime', string='Expected Date', select=1, help="Expected date for the picking to be processed"),

        'date': fields.datetime('Order Date', help="Date of Order",
select=True),

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/898358

Title:
  picking tree view date/min_date color

Status in OpenERP Addons (modules):
  New

Bug description:
  In picking view: stock.view_picking_out_tree
  tree color attribute is:
  <tree colors="blue:state in ('draft');grey:state in ('cancel');red:state not in ('cancel', 'done') and date &lt; current_date" string="Delivery Orders">

  the "red:state not in ('cancel', 'done') and date &lt; current_date" is bugging me:
  it might not be a bug, but I think it would make more sense if it was "red:state not in ('cancel', 'done') and min_date &lt; current_date" instead.

  min_date is the expected date, date is supposed to be the order date: why bother signaling picking which were done in the past ?
  All my picking were ordered in the past...

          'min_date': fields.function(get_min_max_date, fnct_inv=_set_minimum_date, multi="min_max_date",
                   method=True, store=True, type='datetime', string='Expected Date', select=1, help="Expected date for the picking to be processed"),

          'date': fields.datetime('Order Date', help="Date of Order",
  select=True),

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/898358/+subscriptions


Follow ups

References