changeset 7b3ceb7803f3 in modules/edocument_uncefact:default
details:
https://hg.tryton.org/modules/edocument_uncefact?cmd=changeset;node=7b3ceb7803f3
description:
Prevent assign unknown attributes on Model
by adding __slots__ on PoolMeta
issue8567
review254091002
diffstat:
edocument.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 14378198f091 -r 7b3ceb7803f3 edocument.py
--- a/edocument.py Mon May 06 15:03:35 2019 +0200
+++ b/edocument.py Sat Sep 07 23:45:08 2019 +0200
@@ -53,6 +53,7 @@
class Invoice(Model):
"EDocument UN/CEFACT Invoice"
__name__ = 'edocument.uncefact.invoice'
+ __no_slots__ = True # to work with cached_property
@classmethod
def __setup__(cls):