Fix user for new Transaction for issue1667
This commit is contained in:
1 parent
e50dbec0a2
commit
3ae3f81be8
1 file changed
+1
-1
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user