Amit Dodiya (OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/6.0-opw-582485-ado into lp:openobject-addons/6.0.
Requested reviews: Naresh(OpenERP) (nch-openerp) For more details, see: https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-582485-ado/+merge/139420 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 -- https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-582485-ado/+merge/139420 Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/6.0-opw-582485-ado.
=== modified file 'sale/sale.py' --- sale/sale.py 2012-12-04 13:29:03 +0000 +++ sale/sale.py 2012-12-12 09:56:24 +0000 @@ -128,9 +128,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 : openerp-dev-gtk@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-dev-gtk More help : https://help.launchpad.net/ListHelp