From ec313ba854ddf18f643c9d76a6b8a17f99b55b21 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Thu, 5 Jun 2014 11:20:05 +0200 Subject: [PATCH] Don't assign on_change attribute directly as it's managed by on_change attribute --- account.py | 1 - 1 file changed, 1 deletion(-) diff --git a/account.py b/account.py index 274eae4..a488e80 100644 --- a/account.py +++ b/account.py @@ -154,7 +154,6 @@ class Invoice(BankMixin): @classmethod def __setup__(cls): super(Invoice, cls).__setup__() - cls.payment_type.on_change = ['payment_type', 'party'] readonly = ~Eval('state').in_(['draft', 'validated']) previous_readonly = cls.bank_account.states.get('readonly') if previous_readonly: