feat: added provider to product batch
This commit is contained in:
@@ -92,6 +92,13 @@ class ProductBatch(models.Model):
|
||||
expiration_date = models.DateField(
|
||||
blank=True, null=True, verbose_name=_("Fecha de caducidad / consumo preferente")
|
||||
)
|
||||
provider = models.ForeignKey(
|
||||
"shop.Provider",
|
||||
on_delete=models.SET_NULL,
|
||||
blank=True,
|
||||
null=True,
|
||||
verbose_name=_("Proveedor"),
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.code} - {self.product.name} - {self.quantity}"
|
||||
|
||||
Reference in New Issue
Block a user