From 9abd6d2c23c2c285f16c34f8f37b24fe8a2bc397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 28 Dec 2012 11:03:29 +0100 Subject: [PATCH] Remove no more needed migration of operator in Rule --- trytond/ir/rule.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/trytond/ir/rule.py b/trytond/ir/rule.py index efb7989bca..1046fd4b5e 100644 --- a/trytond/ir/rule.py +++ b/trytond/ir/rule.py @@ -112,17 +112,6 @@ class Rule(ModelSQL, ModelView): 'invalid_domain': 'Invalid domain', }) - @classmethod - def __register__(cls, module_name): - cursor = Transaction().cursor - - super(Rule, cls).__register__(module_name) - - # Migration from 2.0: rename operator '<>' into '!=' - cursor.execute('UPDATE "%s" ' - 'SET operator = %%s ' - 'WHERE operator = %%s' % cls._table, ('!=', '<>')) - @classmethod def check_domain(cls, rules): ctx = cls._get_context()