Ravi Gohil (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.1-opw-575716-rgo 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-575716-rgo/+merge/109778

Hello,

Fixed the issue of `Financial Report` prints amount -0.0 instead of 0.0.

Steps to reproduce:
1) Create a db with demo data and account module install,
2) Goto `Accounting/Configuration/Financial Accounting/Financial 
Reports/Account Reports` and set the `Sign on Reports` field to `Reverse 
balance sign` for any of the entries,
3) Print `Financial Report` having that entry,

Report will be printed with -0.0 if the balance is 0.00.

Kindly review the fix.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-575716-rgo/+merge/109778
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-575716-rgo.
=== modified file 'account/report/account_financial_report.py'
--- account/report/account_financial_report.py	2012-03-26 09:59:08 +0000
+++ account/report/account_financial_report.py	2012-06-12 06:38:21 +0000
@@ -56,7 +56,7 @@
         for report in self.pool.get('account.financial.report').browse(self.cr, self.uid, ids2, context=data['form']['used_context']):
             vals = {
                 'name': report.name,
-                'balance': report.balance * report.sign,
+                'balance': report.balance != 0 and report.balance * report.sign or report.balance,
                 'type': 'report',
                 'level': bool(report.style_overwrite) and report.style_overwrite or report.level,
                 'account_type': report.type =='sum' and 'view' or False, #used to underline the financial report balances

_______________________________________________
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