Nehal Panchal (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-opw-17360-nep into
lp:openobject-addons/6.0.
Requested reviews:
Anup(OpenERP) (ach-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-17360-nep/+merge/74347
Hello,
Fixed Nonetype error in Partner Balance report.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-17360-nep/+merge/74347
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw-17360-nep.
=== modified file 'account/report/account_partner_balance.py'
--- account/report/account_partner_balance.py 2011-01-14 00:11:01 +0000
+++ account/report/account_partner_balance.py 2011-09-07 06:16:24 +0000
@@ -78,7 +78,7 @@
full_account = []
self.cr.execute(
- "SELECT p.ref,l.account_id,ac.name AS account_name,ac.code AS code,p.name, sum(debit) AS debit, sum(credit) AS credit, " \
+ "SELECT p.ref,l.account_id,ac.name AS account_name,ac.code AS code,p.name, COALESCE(sum(debit),0.00) as debit, COALESCE(sum(credit),0.00) as credit, " \
"CASE WHEN sum(debit) > sum(credit) " \
"THEN sum(debit) - sum(credit) " \
"ELSE 0 " \
_______________________________________________
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