changeset fe1a8cddae25 in modules/account_budget:default
details:
https://hg.tryton.org/modules/account_budget?cmd=changeset&node=fe1a8cddae25
description:
Ensure that objects in the Pool has __slots__
issue10719
review375361002
diffstat:
account.py | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (47 lines):
diff -r 59378c71c5f1 -r fe1a8cddae25 account.py
--- a/account.py Sat Aug 28 15:38:30 2021 +0200
+++ b/account.py Thu Sep 23 23:12:35 2021 +0200
@@ -24,7 +24,7 @@
class AmountMixin:
-
+ __slots__ = ()
actual_amount = fields.Function(
Monetary(
"Actual Amount", currency='currency', digits='currency',
@@ -88,7 +88,7 @@
class BudgetMixin:
-
+ __slots__ = ()
name = fields.Char("Name", required=True)
company = fields.Many2One(
'company.company', "Company", required=True, select=True,
@@ -116,7 +116,7 @@
class BudgetLineMixin(
tree(name='current_name', separator='\\'), sequence_ordered(),
AmountMixin):
-
+ __slots__ = ()
budget = None
name = fields.Char(
"Name",
@@ -719,6 +719,7 @@
class CopyBudgetMixin:
+ __slots__ = ()
def default_start(self, field_names):
return {
@@ -744,7 +745,7 @@
class CopyBudgetStartMixin:
-
+ __slots__ = ()
name = fields.Char("Name", required=True)
factor = fields.Numeric(
"Factor",