From 5d1af85dc1ed72fe26a7cd50ca4d711d5c685db1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 20 Jul 2018 23:00:14 +0200 Subject: [PATCH] Fix metaclass for Python3 --- product.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/product.py b/product.py index 2450e84901..f53fe00c5a 100644 --- a/product.py +++ b/product.py @@ -5,8 +5,7 @@ from trytond.pool import PoolMeta from trytond.model import tree, fields -class PriceList(tree()): - __metaclass__ = PoolMeta +class PriceList(tree(), metaclass=PoolMeta): __name__ = 'product.price_list' parent = fields.Many2One('product.price_list', "Parent") @@ -22,8 +21,7 @@ class PriceList(tree()): return context -class PriceListLine: - __metaclass__ = PoolMeta +class PriceListLine(metaclass=PoolMeta): __name__ = 'product.price_list.line' @classmethod