Root kfet account

This commit is contained in:
Ludovic Stephan 2017-03-18 18:02:33 -03:00
parent f512c1bdd7
commit 29d7654052

View file

@ -93,6 +93,14 @@ class Command(MyBaseCommand):
liq_account, _ = Account.objects.get_or_create(cofprofile=liq_profile, liq_account, _ = Account.objects.get_or_create(cofprofile=liq_profile,
trigramme='LIQ') 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 # Caisse
# --- # ---