changeset cbbf2f172e63 in modules/account_statement:default
details: 
https://hg.tryton.org/modules/account_statement?cmd=changeset;node=cbbf2f172e63
description:
        Prevent assign unknown attributes on Model

        by adding __slots__ on PoolMeta

        issue8567
        review254091002
diffstat:

 statement.py |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 85cdb8c43fd9 -r cbbf2f172e63 statement.py
--- a/statement.py      Sat Sep 07 23:43:21 2019 +0200
+++ b/statement.py      Sat Sep 07 23:45:08 2019 +0200
@@ -639,6 +639,7 @@
 
 def origin_mixin(_states, _depends):
     class Mixin:
+        __slots__ = ()
         statement = fields.Many2One(
             'account.statement', "Statement",
             required=True, ondelete='CASCADE', states=_states,

Reply via email to