1
0
forked from erp-dev/erp

feat: stock module

This commit is contained in:
2025-11-04 18:04:27 +08:00
parent 9fde654e2f
commit d88bf367f8
27 changed files with 2238 additions and 561 deletions

View File

@@ -117,8 +117,19 @@ class Product(ModelBase):
blank=True,
null=True,
)
unit = models.IntegerField(
choices=ProductUnitEnum.choices,
default=ProductUnitEnum.METER,
verbose_name='单位',
)
spec = models.CharField(max_length=100, blank=True, null=True, verbose_name='规格')
description = models.TextField(blank=True, null=True, verbose_name='备注描述')
image = models.ImageField(
upload_to='product_images/',
blank=True,
null=True,
verbose_name='产品图片',
)
transform_rate = models.DecimalField(
max_digits=10,
decimal_places=4,