[FIX] Account:
authorJay (Open ERP) <jvo@tinyerp.com>
Fri, 9 Apr 2010 09:18:42 +0000 (14:48 +0530)
committerJay (Open ERP) <jvo@tinyerp.com>
Fri, 9 Apr 2010 09:18:42 +0000 (14:48 +0530)
commitbd226268019de7113700be43a034e2fd7ce9701a
treed73b049b174c09e6346173d3fc8e8f8d54c8e378
parentc337260aaa68f44e6c420609ce301edd94fe4faa
[FIX] Account:
Group1 = ['payable', 'receivable', 'other']
Group2 = ['consolidation','view']

The change in type of Account should not be allowed in the following conditions:
1. If the account with its children(if any) have any entries and old type is in Group1, goes to new type in Group2.
2. If the account with its children(if any) have any entries and old type is in Group2, goes to new type in Group1.
3. If the account with its children(if any) have any entries and old type is Closed and new type is other than 'Closed'.

lp bug: https://launchpad.net/bugs/535109 fixed

bzr revid: jvo@tinyerp.com-20100409091842-jat0tjzuin1gzfu3
addons/account/account.py