From 3ae3f81be8bbde257cbd50fc22104bd8e29d7302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 31 Aug 2010 22:53:15 +0200 Subject: [PATCH] Fix user for new Transaction for issue1667 --- account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account.py b/account.py index 2ad08f84b9..fd7be9c8b1 100644 --- a/account.py +++ b/account.py @@ -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: