forked from DGNum/gestioCOF
Root kfet account
This commit is contained in:
parent
f512c1bdd7
commit
29d7654052
1 changed files with 8 additions and 0 deletions
|
@ -93,6 +93,14 @@ class Command(MyBaseCommand):
|
|||
liq_account, _ = Account.objects.get_or_create(cofprofile=liq_profile,
|
||||
trigramme='LIQ')
|
||||
|
||||
# Root account if existing
|
||||
|
||||
root_profile = CofProfile.objects.filter(user__username='root')
|
||||
if root_profile.exists():
|
||||
root_profile = root_profile.get()
|
||||
Account.objects.get_or_create(cofprofile=root_profile,
|
||||
trigramme='AAA')
|
||||
|
||||
# ---
|
||||
# Caisse
|
||||
# ---
|
||||
|
|
Loading…
Reference in a new issue