Prevent assign unknown attributes on Model

by adding __slots__ on PoolMeta

issue8567
review254091002
This commit is contained in:
Cédric Krier committed 2019-09-07 23:45:08 +02:00
1 parent 2dc2dae5b1
commit c60dcb8302
1 file changed
+1
+1
View File
@@ -9,6 +9,7 @@ from trytond.pyson import If, Eval, Bool
def AccountTypeMixin(template=False):
class Mixin:
__slots__ = ()
unearned_revenue = fields.Boolean(
"Unearned Revenue",
domain=[