adapt code to is_checkout removal

This commit is contained in:
Ludovic Stephan 2017-03-24 20:52:49 -03:00
parent cadaf43131
commit d7740e66fe
6 changed files with 105 additions and 40 deletions

View file

@ -552,9 +552,9 @@ class Operation(models.Model):
@property
def is_checkout(self):
return (self.type == DEPOSIT or
self.type == WITHDRAW or
(self.type == PURCHASE and self.group and
return (self.type == Operation.DEPOSIT or
self.type == Operation.WITHDRAW or
(self.type == Operation.PURCHASE and self.group and
self.group.on_acc.is_cash)
)