← Back to team overview

credativ team mailing list archive

[Bug 914840] Re: [trunk] [stock] red color in warehouse management views not appropriate

 

Hello,

I am confirming this issue because there should not be "date" field in
tree tag of stock.picking.out.tree. But I am not agree with the solution
of Benoit.

We have described a two different field for stock.picking object which is min_date and max_date.
min_date will takes the minimum scheduled date of the stock.moves and max_date will takes the maximum scheduled date of the  stock.moves.

Lets take the one example for that.
Out/001 have two different stock.moves, first move has 19/01/2011 schedule date and 2nd move has 27/01/2011 schedule date.
So the min_date will become 19/01/2011 and max_date will become 27/01/2011 and  my current date is 20/01/2011.

Now, I have applied as per Benoit's solution then I show that the
delivery order doesn't became red. Here I have described that when the
delivery order becoming a red? . When my system date beyonds the one the
stock moves schedule date then it will be show us, we have due date of
this stock move so first deliver it .that's why as per my "Opinion"
there should be a "min_date" rather then max_date or date.

According to my given example, If I have used a min_date then it will
become red. So that is better if we will use min_date instead of
max_date.

@Team: Finally let the team will decide which behavior/solution will be
taken.

Thanks for understanding!

** Changed in: openobject-addons
       Status: Incomplete => Opinion

** Changed in: openobject-addons
       Status: Opinion => Confirmed

** Changed in: openobject-addons
   Importance: Undecided => Low

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 2 (openerp-dev-addons2)

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

Title:
  [trunk] [stock] red color in warehouse management views not
  appropriate

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  A line in the list of delivery orders, incoming shippments or internal moves become red when the current date is higher than the order date.
  in stock_view.xml
  line 864 :
          <record id="view_picking_out_tree" model="ir.ui.view">
              <field name="name">stock.picking.out.tree</field>
              <field name="model">stock.picking</field>
              <field name="type">tree</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="Delivery Orders">

  date in stock_picking is the date of order.

  so the color is red even if the delivery is not late. Maybe the
  comparated date should be the max_date.

  Best regards,

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


References