Merge lp:~openerp-dev/openobject-addons/6.1-opw-582485-ado into lp:openobject-addons/6.1

Proposed by Amit Dodiya (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-582485-ado
Merge into: lp:openobject-addons/6.1
Diff against target: 13 lines (+0/-3)
1 file modified
sale/sale.py (+0/-3)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-582485-ado
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Pending
Review via email: mp+139421@code.launchpad.net

Description of the change

Hello,

[FIX] sale: paying an advanced invoice on sale order makes wrong the calculation of the progress bar invoiced

Steps:
1). Create a sale order of 1000 now make an advance invoice of 100
2). Pay that invoice and back to the sale order and check in the list view the progress bar for invoiced field is set to 100 %. If you skip the step 3 and don t pay the advanced invoice, the result is correct and shows 10 %.

Regards,
Amit

To post a comment you must log in.

Unmerged revisions

7085. By Amit Dodiya<email address hidden>

[FIX] sale: paying an advanced invoice on sale order makes wrong the calculation of the progress bar invoiced

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'sale/sale.py'
2--- sale/sale.py 2012-10-09 12:16:14 +0000
3+++ sale/sale.py 2012-12-12 09:58:12 +0000
4@@ -130,9 +130,6 @@
5 def _invoiced_rate(self, cursor, user, ids, name, arg, context=None):
6 res = {}
7 for sale in self.browse(cursor, user, ids, context=context):
8- if sale.invoiced:
9- res[sale.id] = 100.0
10- continue
11 tot = 0.0
12 for invoice in sale.invoice_ids:
13 if invoice.state not in ('draft', 'cancel'):