openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #05455
[Bug 914840] Re: [trunk] [stock] red color in warehouse management views not appropriate
Hello,
@Mayur: Thanks for the quick fix it and considering a min_date for it.
@Benoit: Here we have used a min_date instead of max_date it should be
better because If one of the product's move will be overdue in delivery
order then it should remind us about that.
I think this solution is better for both complete shipping or partial shipping.
Let 's take one example.
I have two product A and B. A's customer lead time is 2 days ans B's customer lead time is 30 days. I have created a Sale Order for 23/01/2011 (Order Date) then it will created a delivery order with two stock move. i.e
move A product A schedule date : 25/01/2011 (Order date+customer lead time)
move B product B schedule date : 22/02/2011 (Order date+customer lead time)
Now, If we have used a max_date then the picking will become red after the 22 feb, so the problem is our product A will block for 28 day which doesn't make sense..;-).
If we have used a min_date then picking will become red after the 25 jan, another thing is we would use a partial delivery for this type of issue and then we will only deliver the product A then after the back order generated for product B which will become red after 22feb. Finally all things are done as per expected.
For 2nd shipping policy, If we have used a "complete shipping" , then it
will better if we are early rather then late for some product( This is
the basic thing that no one wants to become late..;-)).
That's why we have decide here to use min_date instead of max_date.
Hope you will clear now.
Thanks for the savvy!
--
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/914840
Title:
[trunk] [stock] red color in warehouse management views not
appropriate
Status in OpenERP Addons (modules):
Fix Committed
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 < 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