[6.1][7.0][trunk] purchase progress bar invoiced_rate wrong

Bug #1077931 reported by Peter Langenberg on 2012-11-12
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Medium
OpenERP Publisher's Warranty Team
OpenERP Community Backports (Addons)
Status tracked in 7.0
6.1
Medium
Yann Papouin
7.0
Undecided
Unassigned

Bug Description

Purchases > Purchase order

0) create demo database
1) Create a purchase order with standard demo data (1 line)
2) Confirm the incoming shipment (everything is shipped to you)
3) Create the invoice - confirm the invoice

Invoice progress bar of the purchase order is now 100 % (this is ok ...)

But now ...

4) Do a complete (or partial) return of this incoming shipment and create a credit note.
confirm the credit note.

Result : The invoice progress bar gives 200% invoiced ?

Please merge the solution in the stable branch.

Peter

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Changed in openobject-addons:
status: New → Confirmed
importance: Undecided → Medium

Hi,

Currently it considers the number of invoices associated with the purchase and rate is calculated for the
invoice untaxed amount. I think type of invoice should also be taken into consideration.

Regards

Changed in openobject-addons:
status: Confirmed → In Progress

Rifakat,

I recommend to take the code of sale.py as a reference.

The min() should better be used in order to limit it to 100%.

Thanks.

Hi,

Fixed this issue in,
lp:~openerp-dev/openobject-addons/6.1-opw-581957-rha
Revision 7079, Revision ID: <email address hidden>

This will be soon revied by our experts, please provide your remark if you face any difficulty.

Regards

Changed in openobject-addons:
status: In Progress → Fix Committed
Yann Papouin (yann-papouin) wrote :

_invoiced_rate must also be clamped to avoid a rate > 100%.
nb: A clamp already exists in the sale module

summary: - 6.1 progress bar invoiced_rate wrong
+ [6.1][7.0][trunk] purchase progress bar invoiced_rate wrong
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers