forked from DGNum/gestioCOF
Add some restrictions on deletion
This commit is contained in:
parent
08ac0ac890
commit
52521e89a6
2 changed files with 12 additions and 2 deletions
|
@ -152,7 +152,7 @@ class Account(models.Model):
|
|||
|
||||
@property
|
||||
def readable(self):
|
||||
return self.trigramme != "GNR"
|
||||
return self.trigramme not in [KFET_DELETED_TRIGRAMME, KFET_GENERIC_TRIGRAMME]
|
||||
|
||||
@property
|
||||
def is_team(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue