Wrong Prioritization of OpenERP v6.1 Procurement

Bug #1012470 reported by Michael Aldrin Villamar (FS3) on 2012-06-13
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 2
OpenERP Community Backports (Addons)
Undecided
Unassigned
6.1
Medium
Yann Papouin

Bug Description

Hi OpenERP Addons Team,

I think the prioritization of OpenERP v6.1 procurement is wrong because the procurement sorts the list according to Priority and decreasing Scheduled Date. Moreover, it affects the automatic allocation/reservation of products in Delivery Orders with Waiting Availability state when using mrp scheduler.

Example, default sorting of OpenERP procurement:
1st - Priority: Not Urgent (0), Scheduled Date: June 20, 2012
2nd - Priority: Normal (1), Scheduled Date: June 24, 2012
3rd - Priority: Normal (1), Scheduled Date: June 21, 2012
4th - Priority: Normal (1), Scheduled Date: June 20, 2012
5th - Priority: Very Urgent (3), Scheduled Date: June 20, 2012

The order should be (desc priority, schedule date):
1st - Priority: Very Urgent (3), Scheduled Date: June 20, 2012
2nd - Priority: Normal (1), Scheduled Date: June 20, 2012
3rd - Priority: Normal (1), Scheduled Date: June 21, 2012
4th - Priority: Normal (1), Scheduled Date: June 24, 2012
5th - Priority: Not Urgent (0), Scheduled Date: June 20, 2012

or it should be (schedule date, desc priority):
1st - Priority: Very Urgent (3), Scheduled Date: June 20, 2012
2nd - Priority: Normal (1), Scheduled Date: June 20, 2012
3rd - Priority: Not Urgent (0), Scheduled Date: June 20, 2012
4th - Priority: Normal (1), Scheduled Date: June 21, 2012
5th - Priority: Normal (1), Scheduled Date: June 24, 2012

Related branches

Changed in openobject-addons:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
Ravish(OpenERP) (rmu-openerp) wrote :

Hello,

 It has been fixed on lp:~openerp-dev/openobject-addons/trunk-bug-1012470-rmu branch with Following Revision Number and Revision ID.

Revision Number: 7022
Revision ID: <email address hidden>

This will soon merge with trunk

 Thank you!

Changed in openobject-addons:
status: Confirmed → Fix Committed
Anto (abourguignon) wrote :

Hello,

The fix has been released in trunk (revno 7415). Thanks.

Regards,
Anto.

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

Other bug subscribers