Nehal Panchal (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.1-opw-580818-nep into 
lp:openobject-addons/6.1.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-580818-nep/+merge/132046

Hello,

In Sales Order, when advance invoice is created and the invoice is validated 
the progress bar shows correct indication. But when the invoice is paid, the 
progress bar is 100% which is wrong. 

For example:
1. Create Sales Order with price:100 of any Product. 
2. Confirm Sales Order then create an advance invoice with price:50.
3. Validate the invoice, progress bar shows 50% which is correct.
4. Paid the invoice, progress bar shows 100% which is incorrect.

This fixes the issue. 

Thanks
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-580818-nep/+merge/132046
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-580818-nep.
=== modified file 'sale/sale.py'
--- sale/sale.py	2012-10-09 12:16:14 +0000
+++ sale/sale.py	2012-10-30 10:35:29 +0000
@@ -130,9 +130,6 @@
     def _invoiced_rate(self, cursor, user, ids, name, arg, context=None):
         res = {}
         for sale in self.browse(cursor, user, ids, context=context):
-            if sale.invoiced:
-                res[sale.id] = 100.0
-                continue
             tot = 0.0
             for invoice in sale.invoice_ids:
                 if invoice.state not in ('draft', 'cancel'):

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to