From 5c7f8ae48a33df3d79fc704da70bc8e848204fbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 27 Oct 2008 18:49:32 +0100 Subject: [PATCH] Root user is not restricted by group in workflow (OpenERP 1197.1.7) --- trytond/wkf_service/wkf_expr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trytond/wkf_service/wkf_expr.py b/trytond/wkf_service/wkf_expr.py index be6fc25ba9..0fba6cc73a 100644 --- a/trytond/wkf_service/wkf_expr.py +++ b/trytond/wkf_service/wkf_expr.py @@ -68,8 +68,8 @@ def check(cursor, ident, transition, signal, context=None): if transition['signal']: res = (signal == transition['signal']) - if transition['group']: - user = ident[0] + user = ident[0] + if transition['group'] and user != 0: user_obj = pooler.get_pool(cursor.dbname).get('res.user') user_groups = user_obj.read(cursor, user, user, ['groups'], context=context)['groups']