From c60dcb8302fbab324a152f9b95fb8ca997245551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 7 Sep 2019 23:45:08 +0200 Subject: [PATCH] Prevent assign unknown attributes on Model by adding __slots__ on PoolMeta issue8567 review254091002 --- account.py | 1 + 1 file changed, 1 insertion(+) diff --git a/account.py b/account.py index b4d6536bb8..aa7ff5b49e 100644 --- a/account.py +++ b/account.py @@ -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=[