zero quantity in wizard in reception lines

Bug #1222680 reported by Rodolfo Lopez
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Medium
OpenERP Publisher's Warranty Team

Bug Description

1.-to receive several products in one entry, if you let all quantities to zero generates a backorder and canceled order

2.- The result you observed:
the wizard does not validate that all the lines have quantity zero, and generate a backorder and a order canceled

3.-The result you expected:
the wizard validates who can not have all lines zero quantity

4.-The platform your are using in runbot
(Build 19480)
server (5069)
addons (9420)
web (4026)

NOTE: Attached VIDEO with Explain.
Also in: http://youtu.be/4P2iKMRaFec

Tags: maintenance

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Medium
status: New → Confirmed
tags: added: maintenance
Changed in openobject-addons:
assignee: OpenERP R&D Addons Team 2 (openerp-dev-addons2) → OpenERP Publisher's Warranty Team (openerp-opw)
status: Confirmed → In Progress
Revision history for this message
Rifakat Husen (OpenERP) (rha-openerp) wrote :

Well, I think root problem is when you confirm any reception, reception lines are marked as Waiting Availability. This is wrong, because as soon as you confirm any shipment, all the lines should be Available automatically. Because it will not be easy for a user to go and manually mark all the lines as Available.

Rodolfo, this would ultimately solve your problem. Branch on the way!

Revision history for this message
Moisés López - http://www.vauxoo.com (moylop260) wrote :

Hello Rifakat,
The matter is that we have a empty backorder picking when qty = 0 in all lines.

This patch have same bug.

Revision history for this message
Rifakat Husen (OpenERP) (rha-openerp) wrote :

Dear Moisés,
I think this is normal when you process shipment(wizard lines) with no qty and that will create empty backorder as you haven't received anything. One should avoid this action. Does it make sense to process a shipment which is having no goods?

What this patch does: It marks stock moves Available when you confirm your shipment. So when you process wizard it will never have qty as 0. And ultimately empty backorder will never be generated.

But my point here is, why your reception wizard lines having no qty? It's because you picking lines are in state 'Waiting Availability'. And when it is reception/incoming shipment, reception lines should not be in 'Waiting Availability'. They should always be Available as you are getting goods from your supplier. IMO, bug is that the reception lines are marked as 'Waiting Availability' as soon as you confirm you shipment.

I would like to draw your attention for behavior of 7.0 and earlier versions. In 6.1/6.0, there was a button `Check Availability` and we used to click that button to set any shipment Available. We have removed this button in 7.0(correct, useability purpose we don't need this button) but now we have no way to set shipment as available except doing it form shipment lines. So with my patch, this 'Check Availability' button action is also taken care while you confirm the shipment.

Also note that when you create a shipment with no qty in stock moves and processing it will not create any backorder.
Please let me know if I am missing anything.

Regards,
Rifakat

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Isaac López Zúñiga (isaako34) wrote :

Hi Rifakat.
The last message, says fix commited, however I can't find where is the revno with the fix commited.

I made the test in runbot and the problem is the same like the last video: http://youtu.be/4P2iKMRaFec

I tested in runbot with versions:

 (Build 20988)
server (4909)
addons (8782)
web (3746)

Regards

Revision history for this message
Rifakat Husen (OpenERP) (rha-openerp) wrote :

Hi Isaac,
This is still fix committed and not fix released.

I have fixed it in attached branch on the bug report,
lp:~openerp-dev/openobject-addons/7.0-opw-597660-rha
Revision 9454, <email address hidden>

I will be soon reviewed and merged into stable and then it will available on the runbot.
May you check my branch on the runbot,
http://7-0-opw-597660-rha-21018.runbot.openerp.com/?db=7-0-opw-597660-rha-21018-all

Feel free to notify if you face any problem. I am going to put an mp now for 7.0.
Regards.

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.