Fix user for new Transaction for issue1667

This commit is contained in:
Cédric Krier committed 2010-08-31 22:53:15 +02:00
1 parent e50dbec0a2
commit 3ae3f81be8
1 file changed
+1 -1
+1 -1
View File
@@ -376,7 +376,7 @@ class AccountSelection(ModelSQL, ModelView):
if account.root.id in roots:
return False
roots.append(account.root.id)
if user: #Root can by pass
if Transaction().user: #Root can by pass
for account in root_accounts:
if account.mandatory:
if not account.id in roots: