From 3f3bbc1cdfd66177834b02b49a28012508e3e196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 18 Nov 2013 12:52:14 +0100 Subject: [PATCH] classmethod set_active should use cls instead of self --- work.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/work.py b/work.py index a62df95e53..ba1b99b2ef 100644 --- a/work.py +++ b/work.py @@ -153,7 +153,7 @@ class Work(ModelSQL, ModelView): return self.work.active @classmethod - def set_active(self, works, name, value): + def set_active(cls, works, name, value): pool = Pool() Work = pool.get('timesheet.work')