changeset 240490385326 in modules/stock:default
details: https://hg.tryton.org/modules/stock?cmd=changeset;node=240490385326
description:
Prevent assign unknown attributes on Model
by adding __slots__ on PoolMeta
issue8567
review254091002
diffstat:
move.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 56f57d41846b -r 240490385326 move.py
--- a/move.py Sat Sep 07 23:38:20 2019 +0200
+++ b/move.py Sat Sep 07 23:45:08 2019 +0200
@@ -42,6 +42,7 @@
class StockMixin(object):
'''Mixin class with helper to setup stock quantity field.'''
+ __slots__ = ()
@classmethod
def _quantity_context(cls, name):