changeset bf72762f710d in modules/purchase_secondary_unit:default
details:
https://hg.tryton.org/modules/purchase_secondary_unit?cmd=changeset;node=bf72762f710d
description:
Prevent assign unknown attributes on Model
by adding __slots__ on PoolMeta
issue8567
review254091002
diffstat:
product.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 955205d145bf -r bf72762f710d product.py
--- a/product.py Fri Aug 09 16:42:37 2019 +0200
+++ b/product.py Sat Sep 07 23:45:08 2019 +0200
@@ -11,6 +11,7 @@
class PurchaseSecondaryMixin:
+ __slots__ = ()
purchase_secondary_uom = fields.Many2One(
'product.uom', "Purchase Secondary UOM",
domain=[