create checkout dynamically
This commit is contained in:
parent
1062fd480f
commit
4e62eb0aee
3 changed files with 12 additions and 3 deletions
|
@ -81,13 +81,23 @@ class Command(MyBaseCommand):
|
|||
liq_account = Account.objects.get_or_create(cofprofile=liq_profile,
|
||||
trigramme='LIQ')
|
||||
|
||||
# ---
|
||||
# Caisse
|
||||
# ---
|
||||
|
||||
checkout = Checkout.objects.get_or_create(
|
||||
created_by=Account.objects.get(username='Moralelastix'),
|
||||
name='Chaudron',
|
||||
valid_from=timezone.now(),
|
||||
valid_to=timezone.now() + timedelta(years=1)
|
||||
)
|
||||
|
||||
# ---
|
||||
# Opérations
|
||||
# ---
|
||||
|
||||
articles = Article.objects.all()
|
||||
accounts = Account.objects.exclude(trigramme='LIQ')
|
||||
checkout = Checkout.objects.all()[0]
|
||||
|
||||
num_op = 100
|
||||
# Operations are put uniformly over the span of a week
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue