From 662abbdc26dbadc980ea21555bc0d0271c537756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 23 Sep 2021 23:12:35 +0200 Subject: [PATCH] Ensure that objects in the Pool has __slots__ issue10719 review375361002 --- account.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/account.py b/account.py index b0c45cecc8..e0f5c51069 100644 --- a/account.py +++ b/account.py @@ -24,7 +24,7 @@ from .exceptions import BudgetValidationError class AmountMixin: - + __slots__ = () actual_amount = fields.Function( Monetary( "Actual Amount", currency='currency', digits='currency', @@ -88,7 +88,7 @@ class AmountMixin: class BudgetMixin: - + __slots__ = () name = fields.Char("Name", required=True) company = fields.Many2One( 'company.company', "Company", required=True, select=True, @@ -116,7 +116,7 @@ class BudgetMixin: class BudgetLineMixin( tree(name='current_name', separator='\\'), sequence_ordered(), AmountMixin): - + __slots__ = () budget = None name = fields.Char( "Name", @@ -719,6 +719,7 @@ class BudgetLinePeriod(AmountMixin, ModelSQL, ModelView): class CopyBudgetMixin: + __slots__ = () def default_start(self, field_names): return { @@ -744,7 +745,7 @@ class CopyBudgetMixin: class CopyBudgetStartMixin: - + __slots__ = () name = fields.Char("Name", required=True) factor = fields.Numeric( "Factor",