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

        by adding __slots__ on PoolMeta

        issue8567
        review254091002
diffstat:

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

diffs (11 lines):

diff -r 58905ea52447 -r 235cfa97d1b3 account.py
--- a/account.py        Sat Sep 07 23:38:20 2019 +0200
+++ b/account.py        Sat Sep 07 23:45:08 2019 +0200
@@ -9,6 +9,7 @@
 def AccountTypeMixin(template=False):
 
     class Mixin:
+        __slots__ = ()
         unearned_revenue = fields.Boolean(
             "Unearned Revenue",
             domain=[

Reply via email to