[FIX] Account:
authorJMA (OpenERP) <jma@tinyerp.com>
Mon, 10 May 2010 10:41:03 +0000 (16:11 +0530)
committerJMA (OpenERP) <jma@tinyerp.com>
Mon, 10 May 2010 10:41:03 +0000 (16:11 +0530)
commita5cb75b4238c630833f94678cd482e999e88306d
tree6eb413894862f8b45aab3078baaecf6f85a86e2c
parentee48c965e50a90706d37f3ee951dffcaa7e7cb73
[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'.

bzr revid: jma@tinyerp.com-20100510104103-gnxsitsw0q6mvwzb
addons/account/account.py