diff --git a/kfet/management/commands/loadkfetdevdata.py b/kfet/management/commands/loadkfetdevdata.py index 328a50a4..8fa974df 100644 --- a/kfet/management/commands/loadkfetdevdata.py +++ b/kfet/management/commands/loadkfetdevdata.py @@ -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 # ---