Ensure that objects in the Pool has __slots__

issue10719
This commit is contained in:
Raimon Esteve 2021-10-01 10:04:41 +02:00
parent 2d9ad5e155
commit a3bd48ccd4
2 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,7 @@ class QualityTest(metaclass=PoolMeta):
class TestLineMixin(Model):
__slots__ = ()
product = fields.Function(fields.Many2One('product.product', 'Product', select=True),
'get_product', searcher='search_product')

View File

@ -13,6 +13,7 @@ _WINE_DIGITS = 4
class WineMixin(Model):
__slots__ = ()
wine_quality_comment = fields.Function(fields.Text('Wine Quality Comments'),
'get_wine_quality_comment')