← Back to team overview

openerp-dev-web team mailing list archive

[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-728417-ara into lp:openobject-addons

 

Ashvin Rathod (OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-728417-ara into lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  #728417 [6.0.1] Exception raised when setting an Account InActive
  https://bugs.launchpad.net/bugs/728417

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-728417-ara/+merge/52660

Hello,

Fix the bug: [6.0.1] Exception raised when setting an Account InActive
https://bugs.launchpad.net/openobject-addons/+bug/728417

Thanks,
ara
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-728417-ara/+merge/52660
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-728417-ara.
=== modified file 'account/account.py'
--- account/account.py	2011-03-03 14:59:00 +0000
+++ account/account.py	2011-03-09 11:26:15 +0000
@@ -247,6 +247,9 @@
         }
         #get all the necessary accounts
         children_and_consolidated = self._get_children_and_consol(cr, uid, ids, context=context)
+        #children_and_consolidated is empty when account has not any child account and try to make that account as inactive
+        if not children_and_consolidated:
+            children_and_consolidated = ids
         #compute for each account the balance/debit/credit from the move lines
         accounts = {}
         if children_and_consolidated:


Follow ups