Prevent assign unknown attributes on Model
by adding __slots__ on PoolMeta issue8567 review254091002
This commit is contained in:
1 parent
2dc2dae5b1
commit
c60dcb8302
1 file changed
+1
@@ -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=[
|
||||
|
||||
Reference in new issue
Block a user