changeset be9151c2c0c3 in modules/account_asset:default
details:
https://hg.tryton.org/modules/account_asset?cmd=changeset;node=be9151c2c0c3
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 a47939fadae7 -r be9151c2c0c3 account.py
--- a/account.py Fri Aug 09 16:32:45 2019 +0200
+++ b/account.py Sat Sep 07 23:45:08 2019 +0200
@@ -122,6 +122,7 @@
def AccountTypeMixin(template=False):
class Mixin:
+ __slots__ = ()
fixed_asset = fields.Boolean(
"Fixed Asset",
domain=[