remove Selling.is_validated

This commit is contained in:
imperosol
2025-11-19 19:54:45 +01:00
parent 7373e3d9de
commit 2a5893aa79
8 changed files with 21 additions and 18 deletions

View File

@@ -268,7 +268,6 @@ class Invoice(models.Model):
unit_price=i.product_unit_price,
quantity=i.quantity,
payment_method="CARD",
is_validated=True,
date=self.date,
)
new.save()

View File

@@ -108,10 +108,13 @@ def test_eboutic_basket_expiry(
client.force_login(customer.user)
for date in sellings:
sale_recipe.make(
customer=customer, counter=eboutic, date=date, is_validated=True
)
sale_recipe.make(
customer=customer,
counter=eboutic,
date=iter(sellings),
_quantity=len(sellings),
_bulk_create=True,
)
for date in refillings:
refill_recipe.make(customer=customer, counter=eboutic, date=date)