forked from DGNum/gestioCOF
adapt code to is_checkout removal
This commit is contained in:
parent
cadaf43131
commit
d7740e66fe
6 changed files with 105 additions and 40 deletions
|
@ -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)
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue