Prevent assign unknown attributes on Model

by adding __slots__ on proteus classes.

issue6573
review254081002
This commit is contained in:
Cédric Krier committed 2019-09-07 23:38:20 +02:00
1 parent ad16e35000
commit de46d5c0e2
2 files changed
-2

No files matched your search

@@ -45,7 +45,6 @@ Create chart of accounts::
>>> bank_clearing.type = payable.type
>>> bank_clearing.reconcile = True
>>> bank_clearing.deferral = True
>>> bank_clearing.kind = 'other'
>>> bank_clearing.save()
>>> Journal = Model.get('account.journal')
@@ -49,7 +49,6 @@ Create chart of accounts::
>>> bank_clearing.type = payable.type
>>> bank_clearing.reconcile = True
>>> bank_clearing.deferral = True
>>> bank_clearing.kind = 'other'
>>> bank_clearing.save()
>>> Journal = Model.get('account.journal')