Don't assign on_change attribute directly as it's managed by on_change attribute

This commit is contained in:
Sergi Almacellas Abellana 2014-06-05 11:20:05 +02:00
parent 52da8d3c81
commit ec313ba854

View file

@ -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: