[6.1/trunk] Invalid commitment date in sale_order_dates module

Bug #1007317 reported by Yann Papouin
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Low
OpenERP R&D Addons Team 2

Bug Description

The commitment date which is the "Date on which delivery of products is to be made" is badly computed as it is get from: min(dates_list) it should be max(dates_list) (I agree that it "could" be min if the picking_policy is set to "direct") :

Consider two sale order lines:

Product A: delay to deliver: 8 days
Product B: delay to deliver: 24 days

The commitment date must obviously be the current date + 24 business days

Related branches

summary: - [6..1] Invalid commitment date in sale_order_dates module
+ [6.1] Invalid commitment date in sale_order_dates module
Amit Parik (amit-parik)
summary: - [6.1] Invalid commitment date in sale_order_dates module
+ [6.1/trunk] Invalid commitment date in sale_order_dates module
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Yann.

As per the tool-tip it should be maximum date.

Thanks for the pointing out this.

This issue has been committed on lp:~openerp-dev/openobject-addons/trunk-bug-1007317-amp branch with revno 6858 and rev id <email address hidden>.

It will be merge with trunk soon.

Thanks!

Changed in openobject-addons:
status: Confirmed → Fix Committed
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

no, the commitment is based on what you promise to your customer. it's normal to take the min(), otherwise you do not respect the commitment for some products.

Changed in openobject-addons:
status: Fix Committed → Invalid
Revision history for this message
Yann Papouin (yann-papouin) wrote :

no, that's depends on the picking policy:

In [direct]: deliver each product as soon as possible -> ok in that case it could be min()
In [one]: deliver all product at once -> in that case it must be max() as we will have to wait for each product to be ready before deliver.

Changed in openobject-addons:
status: Invalid → New
Revision history for this message
Lionel Sausin - Initiatives/Numérigraphe (ls-initiatives) wrote :

I agree with Yann's suggestion.

Changed in openobject-addons:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.