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 6ef3d7cf3b
commit 2dc2dae5b1
1 file changed
-1
-1
View File
@@ -82,7 +82,6 @@ Create product::
>>> template.default_uom = unit
>>> template.type = 'goods'
>>> template.salable = True
>>> template.delivery_time = 0
>>> template.list_price = Decimal('20')
>>> template.account_category = account_category
>>> template.save()