changeset 65849f035c6b in modules/stock_shipment_measurements:default
details:
https://hg.tryton.org/modules/stock_shipment_measurements?cmd=changeset;node=65849f035c6b
description:
Prevent assign unknown attributes on Model
by adding __slots__ on PoolMeta
issue8567
review254091002
diffstat:
stock.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 26975d721833 -r 65849f035c6b stock.py
--- a/stock.py Mon May 06 15:17:12 2019 +0200
+++ b/stock.py Sat Sep 07 23:45:08 2019 +0200
@@ -115,6 +115,7 @@
class MeasurementsMixin(object):
+ __slots__ = ()
weight = fields.Function(
fields.Float("Weight", digits=None,
help="The total weight of the record's moves in kg."),