Prevent assign unknown attributes on Model

by adding __slots__ on proteus classes.

issue6573
review254081002
This commit is contained in:
Cédric Krier
2019-09-07 23:38:20 +02:00
parent 71c6b37b32
commit 8a809d1180
@@ -85,7 +85,7 @@ Receive cash::
>>> journal_cash, = Journal.find([('type', '=', 'cash')])
>>> move = Move()
>>> move.period = period
>>> move.data = period.start_date
>>> move.date = period.start_date
>>> move.journal = journal_cash
>>> line = move.lines.new()
>>> line.account = account_cash