bzr revid: fp@tinyerp.com-20090427181749-fgvyzm9096idvob6
This commit is contained in:
Fabien Pinckaers 2009-04-27 20:17:49 +02:00
parent 3ed36fbdb3
commit 2f33c8c852
2 changed files with 3 additions and 1 deletions

View File

@ -380,7 +380,7 @@ class account_account(osv.osv):
if not default:
default = {}
default = default.copy()
default['parent_id'] = False
default['code'] = (account['code'] or '') + '(copy)'
if not local:
done_list = []
if account.id in done_list:

View File

@ -42,6 +42,8 @@ for a in account_lists:
assert not ((a2['parent_right']>a['parent_left']) and
(a2['parent_left']<a['parent_left']) and
(a2['parent_right']<a['parent_right']))
if a2['parent_id']==a['id']:
assert (a2['parent_left']>a['parent_left']) and (a2['parent_right']<a['parent_right'])
print 'Tests Ok'