Sale order line containing service duplicated on invoice

Bug #907211 reported by Antoine(OpenERP)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 3

Bug Description

Create a sale order with 2 lines:

- 1 product type stockable product (like PC1) with qty 2
- 1 service (like EMPL) with qty 3

Picking Policy : Partial Delivery
Shipping Policy : Invoice From The Picking
Invoice on : Shipped Quantities

On the delivery order, process one element of PC1. It will create a new delivery order in state done.
Process the last element of PC1 in the first delivery order. You have a second delivery order in state done

Select both delivery orders in view list and click create invoice in actions. Group the invoices (well, even if you don't, the problem will persists) and check the invoice:

You have 4 lines :
2 x 1 line with your stockable product with the right qty : 1
2 x 1 line with your service but both have a qty of 3

You pay your service twice.

This bug is also present in v6.1

Related branches

Changed in openobject-addons:
status: New → Confirmed
Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Hemendra Paregi (OpenERP) (hpa-openerp) wrote :

Hello Antoine,

Its fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-907211-hpa
Revision ID:<email address hidden>
Revision no: 6114

It will be merged soon with Addons.

Thanks,
Hemendra

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
status: Fix Committed → Fix Released
Revision history for this message
Numérigraphe (numerigraphe) wrote :

Is there an automatic test associated with this bug? I'd like to try some refactoring but I'd like to make sure I don't introduce this kind of regression.
Lionel.

tags: added: partial-delivery service
tags: added: needs-unittest
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.