diff --git a/price_list.py b/price_list.py index bfbab734e7..2e46702870 100644 --- a/price_list.py +++ b/price_list.py @@ -95,8 +95,7 @@ class PriceListLine(ModelSQL, ModelView, MatchMixin): @classmethod def __register__(cls, module_name): TableHandler = backend.get('TableHandler') - cursor = Transaction().cursor - table = TableHandler(cursor, cls, module_name) + table = TableHandler(cls, module_name) super(PriceListLine, cls).__register__(module_name)