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

Bug #1077931 reported by Peter Langenberg
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
Fix Committed
Medium
Yann Papouin
7.0
New
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

Tags: maintenance

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
Revision history for this message
Rifakat Husen (OpenERP) (rha-openerp) wrote :

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
Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :

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.

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

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
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.