changeset 3363ed137913 in modules/account_tax_rule_country:default
details: 
https://hg.tryton.org/modules/account_tax_rule_country?cmd=changeset;node=3363ed137913
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 c72071b493f7 -r 3363ed137913 account.py
--- a/account.py        Sun Aug 18 19:03:12 2019 +0200
+++ b/account.py        Sat Sep 07 23:45:08 2019 +0200
@@ -29,6 +29,7 @@
 
 
 class _TaxRuleLineMixin:
+    __slots__ = ()
     from_country = fields.Many2One(
         'country.country', 'From Country', ondelete='RESTRICT',
         help="Apply only to addresses of this country.")

Reply via email to