[5.0] [stock] Return packing with zero quantity
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
JMA(Open ERP) |
Bug Description
Rev. No: 2798
On Outgoing Products, when I click on 'Return Packing' action, I have the possibility to set the return quantity of a product to 0. When I set the return quantity to 0 and I confirm this return packing, the system creates a picking and moves with quantity of 0.
On this configuration, the system shouldn't create the picking when all return quantities are 0 or shouldn't create the move with return quantity equal to 0. It's not an important bug, but it's not ergonomic when you have a lot of stock movements.
Example on demo data:
On Outgoing Products, open the picking 'PACK21' and I click on 'Return Packing'. On the wizard, set the quantity of PC3 to 0. Click on 'Return'. The system shows the created picking with two moves. One with 0.00 PC3 and one with 3.00 CPU3.
I attached a patch to fix this bug. The patch sees if the quantity of return product are 0, if it's true, the system doesn't create the stock move. If all quantities are 0, the system doesn't create the picking and all stock moves.
Related branches
Changed in openobject-addons: | |
assignee: | nobody → JMA(Open ERP) (jma-openerp) |
Changed in openobject-addons: | |
importance: | Undecided → Low |
milestone: | none → 5.0.13 |
status: | Opinion → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
It has been improved by revision 2801 <email address hidden>.
Thanks.