changeset c3c2e90f8bd9 in modules/account_deposit:default
details:
https://hg.tryton.org/modules/account_deposit?cmd=changeset;node=c3c2e90f8bd9
description:
Prevent assign unknown attributes on Model
by adding __slots__ on PoolMeta
issue8567
review254091002
diffstat:
account.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r ee0d922218d1 -r c3c2e90f8bd9 account.py
--- a/account.py Fri Aug 09 16:33:00 2019 +0200
+++ b/account.py Sat Sep 07 23:45:08 2019 +0200
@@ -8,6 +8,7 @@
def AccountTypeMixin(template=False):
class Mixin:
+ __slots__ = ()
deposit = fields.Boolean(
"Deposit",
domain=[