add: add new invalid product model and create, list api added

This commit is contained in:
behruz-dev
2025-08-27 10:06:14 +05:00
parent 7a8efa74ff
commit 06f3b96e2b
13 changed files with 247 additions and 6 deletions

View File

@@ -26,6 +26,7 @@ class Inventory(BaseModel):
Project, on_delete=models.SET_NULL, null=True, blank=True,
related_name='inventories'
)
is_invalid = models.BooleanField(default=False)
def __str__(self):
return f'{self.product} in {self.wherehouse}'